调整 启动环境
This commit is contained in:
parent
68f9685daa
commit
ea62505f8d
|
@ -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"]
|
Loading…
Reference in New Issue