diff --git a/Dockerfile b/Dockerfile index 3bc8b25..c46c2c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM maven:3.6.3-jdk-8 AS maven +FROM maven:3.6.3-jdk-11 AS maven USER root COPY ./ /tmp/code 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 EXPOSE 8080 ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/webdav-teambition.jar"]