升级JDK版本,修复JDK8有可能造成的ConcurrentHashMap CPU 100% BUG

This commit is contained in:
zhouxin5253@163.com 2021-01-17 09:22:05 +08:00
parent 892dbc21f9
commit 11378e04d9
1 changed files with 2 additions and 2 deletions

View File

@ -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"]