parent
466330162a
commit
a1d02664ea
@ -1,19 +0,0 @@
|
|||||||
FROM arm64v8/openjdk:11 as builder
|
|
||||||
WORKDIR /application
|
|
||||||
ARG JAR_FILE=tcmonline-admin.jar
|
|
||||||
COPY ${JAR_FILE} application.jar
|
|
||||||
RUN java -Djarmode=layertools -jar application.jar extract
|
|
||||||
|
|
||||||
FROM arm64v8/openjdk:11
|
|
||||||
WORKDIR /application
|
|
||||||
COPY --from=builder application/dependencies/ ./
|
|
||||||
COPY --from=builder application/snapshot-dependencies/ ./
|
|
||||||
COPY --from=builder application/spring-boot-loader/ ./
|
|
||||||
COPY --from=builder application/application/ ./
|
|
||||||
COPY docker-entrypoint.sh ./
|
|
||||||
RUN chmod +x docker-entrypoint.sh
|
|
||||||
|
|
||||||
# 安装Redis
|
|
||||||
RUN apt-get update && apt-get install -y redis-server
|
|
||||||
|
|
||||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
redis-server &
|
|
||||||
java $JAVA_OPTS -server \
|
|
||||||
-XX:+UnlockExperimentalVMOptions \
|
|
||||||
-XX:+UseCGroupMemoryLimitForHeap \
|
|
||||||
-XX:-OmitStackTraceInFastThrow \
|
|
||||||
-Djava.security.egd=file:/dev/./urandom \
|
|
||||||
org.springframework.boot.loader.JarLauncher
|
|
||||||
Binary file not shown.
Loading…
Reference in new issue