Browse Source

增加配置文件设置

develop
林万龙 3 years ago
parent
commit
ace769f124
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      Dockerfile

+ 1
- 2
Dockerfile View File

@@ -9,8 +9,7 @@ ENV TimeZone=Asia/Shanghai
ENV active=dev
ENV JAVA_OPTS="-Xmx256M -Xms256M"

#RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
#RUN echo "Asia/Shanghai" > /etc/timezone
#RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime #RUN echo "Asia/Shanghai" > /etc/timezone
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /dianxin-guizhou-forward-telpo0.0.2.jar --spring.profiles.active=$active

Loading…
Cancel
Save