调整 启动环境

This commit is contained in:
wangliwen 2022-07-01 11:34:11 +08:00
parent 68f9685daa
commit ea62505f8d
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
FROM ibm-semeru-runtimes:open-11-jdk
ENV JAR_FILE renren-admin.jar
ENV TAR_FILE renren-admin-1.0.tar.gz
ENV ACTIVE "dev"
ENV VERTICLE_HOME /usr/hisense
EXPOSE 8888
@ -10,4 +11,4 @@ ADD application/$TAR_FILE $VERTICLE_HOME/
WORKDIR $VERTICLE_HOME/renren-admin
ENTRYPOINT ["sh", "-c"]
CMD ["exec java -jar -Dfile.encoding=utf-8 -server -Xshareclasses -Xtune:virtualized -Duser.timezone=GMT+08 $JAR_FILE"]
CMD ["exec java -jar -Dfile.encoding=utf-8 -server -Xshareclasses -Xtune:virtualized -Duser.timezone=GMT+08 $JAR_FILE --spring.profiles.active=$ACTIVE"]