docker 文件中 添加时区
This commit is contained in:
parent
dcec38b3e8
commit
11b5d37baf
@ -1,4 +1,7 @@
|
|||||||
FROM openjdk:8u292-jre-buster
|
FROM openjdk:8u292-jre-buster
|
||||||
ARG JAR_FILE=/target/*.jar
|
ARG JAR_FILE=/target/*.jar
|
||||||
COPY ${JAR_FILE} pollutant-data.jar
|
COPY ${JAR_FILE} pollutant-data.jar
|
||||||
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=jnhb","/pollutant-data.jar"]
|
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=jnhb","/pollutant-data.jar"]
|
||||||
|
|
||||||
|
# 时区问题
|
||||||
|
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
Loading…
Reference in New Issue
Block a user