summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorQuoc Nghia Nguyen <quocnghia.nguyen@orange.com>2018-05-18 20:27:16 +0200
committerQuoc Nghia Nguyen <quocnghia.nguyen@orange.com>2018-05-18 20:27:16 +0200
commit37c7ea1c6a422099572f0ce652430d943284df48 (patch)
tree381279078032b987e3aa38226513885e03bbebdc /Dockerfile
parent921dc4999244e48fc5c47202a3b90980ec44affc (diff)
Fix JVM problem with Docker cpu&memory limits
More detail: https://blogs.oracle.com/java-platform-group/java-se-support-for-docker-cpu-and-memory-limits Change-Id: I9d0fd6ff8caa8f492a79772d81e2937ccd9a3944 Issue-ID: EXTAPI-91 Signed-off-by: Quoc Nghia Nguyen <quocnghia.nguyen@orange.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index ecd59f5..7eb5d81 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -33,7 +33,7 @@ RUN for cert in $(ls -d /certs/*); do \
done
ENV SERVER_PORT=${SERVER_PORT:-8080}
-ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -jar"
+ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
EXPOSE $SERVER_PORT
-ENTRYPOINT java $JAVA_OPTS -jar /app.jar
+ENTRYPOINT java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap $JAVA_OPTS -jar /app.jar