From c9dbc2664733009d338e30a4e12adaefe9e71d1c Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Thu, 19 Aug 2021 18:34:29 +0800 Subject: [PATCH] =?UTF-8?q?docker=20=E6=96=87=E4=BB=B6=E4=B8=AD=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=B6=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 ++++- Dockerfile-jnhb | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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