From 426bbf6e83ae438ff7e080b9bd64a0d6cc91a7f9 Mon Sep 17 00:00:00 2001 From: IJKZEN Date: Tue, 26 Nov 2019 10:09:39 +0800 Subject: [PATCH] feat(jvm): change jvm to openj9 to reduce memory --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index de964aecf..cc1f2fbd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -FROM openjdk:8-jre-alpine - +FROM adoptopenjdk/openjdk8-openj9 VOLUME /tmp ARG JAR_FILE=build/libs/halo.jar @@ -13,4 +12,4 @@ COPY ${JAR_FILE} halo.jar EXPOSE ${PORT} -ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -server -jar halo.jar \ No newline at end of file +ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -server -jar halo.jar