调整docker启动命令
This commit is contained in:
parent
76d90a7b5c
commit
f109b1b481
|
@ -3,6 +3,7 @@ ENV JAR_FILE renren-admin.jar
|
||||||
ENV TAR_FILE renren-admin-1.0.tar.gz
|
ENV TAR_FILE renren-admin-1.0.tar.gz
|
||||||
ENV ACTIVE "dev"
|
ENV ACTIVE "dev"
|
||||||
ENV Xmx "1G"
|
ENV Xmx "1G"
|
||||||
|
ENV Xms "512M"
|
||||||
|
|
||||||
ENV VERTICLE_HOME /usr/hisense
|
ENV VERTICLE_HOME /usr/hisense
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
|
@ -15,4 +16,4 @@ HEALTHCHECK --interval=3m --timeout=3s --start-period=3m --retries=5 CMD curl --
|
||||||
|
|
||||||
WORKDIR $VERTICLE_HOME/renren-admin
|
WORKDIR $VERTICLE_HOME/renren-admin
|
||||||
ENTRYPOINT ["sh", "-c"]
|
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"]
|
CMD ["exec java -jar -Dfile.encoding=utf-8 -server -Xshareclasses -Xtune:virtualized -Xms$Xms -Xmx$Xmx -Dlogback.configurationFile=$VERTICLE_HOME/renren-admin/config/logback-spring.xml -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"]
|
Loading…
Reference in New Issue