From 0ed2dd288d7c79d31d541af7208fbff37bc7d345 Mon Sep 17 00:00:00 2001 From: zxbu <32785355+zxbu@users.noreply.github.com> Date: Mon, 19 Jul 2021 22:31:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=9C=80=E5=A4=A7=E5=86=85?= =?UTF-8?q?=E5=AD=981g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 07cadab..37a5e00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ FROM openjdk:11-jdk-oracle COPY --from=maven /tmp/code/target/*.jar /webdav.jar EXPOSE 8080 ENV JAVA_OPTS="-Xmx1g" -ENTRYPOINT ["java","${JAVA_OPTS}","-Djava.security.egd=file:/dev/./urandom","-jar","/webdav.jar"] +ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /webdav.jar"]