zhouxin5253@163.com
4 years ago
1 changed files with 2 additions and 2 deletions
@ -1,10 +1,10 @@ |
|||||||
FROM maven:3.6.3-jdk-8 AS maven |
FROM maven:3.6.3-jdk-11 AS maven |
||||||
USER root |
USER root |
||||||
COPY ./ /tmp/code |
COPY ./ /tmp/code |
||||||
RUN cd /tmp/code && mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true |
RUN cd /tmp/code && mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true |
||||||
|
|
||||||
|
|
||||||
FROM java:8 |
FROM java:11 |
||||||
COPY --from=maven /tmp/code/target/*.jar /webdav-teambition.jar |
COPY --from=maven /tmp/code/target/*.jar /webdav-teambition.jar |
||||||
EXPOSE 8080 |
EXPOSE 8080 |
||||||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/webdav-teambition.jar"] |
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/webdav-teambition.jar"] |
||||||
|
Loading…
Reference in new issue