From 11378e04d914a7750151074b54b2e298a8c29b1e Mon Sep 17 00:00:00 2001 From: "zhouxin5253@163.com" <9a@2gvp!hs3> Date: Sun, 17 Jan 2021 09:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7JDK=E7=89=88=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8DJDK8=E6=9C=89=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E9=80=A0=E6=88=90=E7=9A=84ConcurrentHashMap=20CPU=20100%=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"]