Update Dockerfile

This commit is contained in:
zxbu 2021-01-17 10:00:38 +08:00 committed by GitHub
parent f1688bd44a
commit 0a11c03dc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ COPY ./ /tmp/code
RUN cd /tmp/code && mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
FROM java:11
FROM openjdk:11-jdk-oracle
COPY --from=maven /tmp/code/target/*.jar /webdav-teambition.jar
EXPOSE 8080
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/webdav-teambition.jar"]