支持最大内存1g

This commit is contained in:
zxbu 2021-07-19 22:31:32 +08:00 committed by GitHub
parent 4f6bc46c4d
commit 0ed2dd288d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,4 +8,4 @@ FROM openjdk:11-jdk-oracle
COPY --from=maven /tmp/code/target/*.jar /webdav.jar COPY --from=maven /tmp/code/target/*.jar /webdav.jar
EXPOSE 8080 EXPOSE 8080
ENV JAVA_OPTS="-Xmx1g" 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"]