From b2d6161dc96b418e5549ee06cd936b15e51254f1 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 8 Nov 2022 10:08:18 +0800 Subject: [PATCH] ... --- renren-admin/src/main/docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renren-admin/src/main/docker/Dockerfile b/renren-admin/src/main/docker/Dockerfile index bd5d89ba..b850603b 100644 --- a/renren-admin/src/main/docker/Dockerfile +++ b/renren-admin/src/main/docker/Dockerfile @@ -14,4 +14,5 @@ RUN cd /usr/share/fonts/truetype/dejavu && chmod 755 * && fc-cache -fv HEALTHCHECK --interval=3m --timeout=3s --start-period=3m --retries=5 CMD curl --silent --fail 127.0.0.1:8888/ucs-admin/census/center/v2/whole_amount || exit 1 WORKDIR $VERTICLE_HOME/renren-admin -ENTRYPOINT ["nohup", "java","-jar","-Dfile.encoding=utf-8 -server -Xshareclasses -Xtune:virtualized -Xms512M -Xmx$Xmx -XX:ReservedCodeCacheSize=240m -XX:InitialCodeCacheSize=240m -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:ConcGCThreads=1 -XX:ParallelGCThreads=2 -XX:ZCollectionInterval=120 -XX:ZAllocationSpikeTolerance=5 -Duser.timezone=GMT+08 $VERTICLE_HOME/renren-admin/$JAR_FILE --spring.profiles.active=$ACTIVE"] \ No newline at end of file +ENTRYPOINT ["sh", "-c"] +CMD ["exec java -jar -Dfile.encoding=utf-8 -server -Xshareclasses -Xtune:virtualized -Xms512M -Xmx$Xmx -XX:ReservedCodeCacheSize=240m -XX:InitialCodeCacheSize=240m -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:ConcGCThreads=1 -XX:ParallelGCThreads=2 -XX:ZCollectionInterval=120 -XX:ZAllocationSpikeTolerance=5 -Duser.timezone=GMT+08 $VERTICLE_HOME/renren-admin/$JAR_FILE --spring.profiles.active=$ACTIVE"] \ No newline at end of file