docker 文件中 添加时区

This commit is contained in:
wanggeng 2021-08-19 18:34:30 +08:00
parent 0916425aa9
commit 2f934de38b

View File

@ -2,3 +2,6 @@ FROM openjdk:8u292-jre-buster
ARG JAR_FILE=/target/*.jar
COPY ${JAR_FILE} system-city.jar
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=jnhb","/system-city.jar"]
# 时区问题
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone