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