diff --git a/Dockerfile b/Dockerfile index 76ba835..b1d9013 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +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 \ No newline at end of file diff --git a/Dockerfile-jnhb b/Dockerfile-jnhb index d720ab3..a4e8af0 100644 --- a/Dockerfile-jnhb +++ b/Dockerfile-jnhb @@ -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"] \ No newline at end of file +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 \ No newline at end of file