From 4f6bc46c4dd4b87575bc62562c131520ede3ce78 Mon Sep 17 00:00:00 2001 From: zxbu <32785355+zxbu@users.noreply.github.com> Date: Mon, 19 Jul 2021 22:16:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81jvm=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E5=86=85=E5=AD=98=E9=99=90=E5=88=B6=E4=B8=BA1g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8c1988c..07cadab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,5 @@ RUN cd /tmp/code && mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.ski FROM openjdk:11-jdk-oracle COPY --from=maven /tmp/code/target/*.jar /webdav.jar EXPOSE 8080 -ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/webdav.jar"] +ENV JAVA_OPTS="-Xmx1g" +ENTRYPOINT ["java","${JAVA_OPTS}","-Djava.security.egd=file:/dev/./urandom","-jar","/webdav.jar"]