修改dockfile
This commit is contained in:
parent
6859c35f8d
commit
875497678e
@ -3,5 +3,11 @@ ARG JAR_FILE=/target/*.jar
|
||||
COPY ${JAR_FILE} smart-city-usercenter.jar
|
||||
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=prod","/smart-city-usercenter.jar"]
|
||||
|
||||
ENV TZ 'Asia/Shanghai'
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
||||
# 时区问题
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user