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