2020-10-04 14:30:40 +08:00
|
|
|
FROM moxm/java:1.8-full as builder
|
|
|
|
WORKDIR /build
|
2020-10-01 17:17:03 +08:00
|
|
|
ARG JAR_FILE=target/pig-upms-biz.jar
|
|
|
|
COPY ${JAR_FILE} app.jar
|
|
|
|
RUN java -Djarmode=layertools -jar app.jar extract && rm app.jar
|
2019-02-01 21:06:59 +08:00
|
|
|
|
2020-10-01 17:17:03 +08:00
|
|
|
FROM moxm/java:1.8-full
|
|
|
|
LABEL maintainer="jclazz@outlook.com"
|
2020-09-17 09:27:05 +08:00
|
|
|
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
|
2020-10-01 17:17:03 +08:00
|
|
|
WORKDIR pig-upms
|
2020-01-27 22:46:56 +08:00
|
|
|
|
2020-10-04 14:30:40 +08:00
|
|
|
COPY --from=builder /build/dependencies/ ./
|
|
|
|
COPY --from=builder /build/snapshot-dependencies/ ./
|
|
|
|
COPY --from=builder /build/spring-boot-loader/ ./
|
|
|
|
COPY --from=builder /build/application/ ./
|
2019-02-01 21:06:59 +08:00
|
|
|
|
|
|
|
EXPOSE 4000
|
|
|
|
|
2020-10-01 17:17:03 +08:00
|
|
|
CMD sleep 60; java $JAVA_OPTS org.springframework.boot.loader.JarLauncher
|