From 11b5d37baf4aa22ca8b0da76b2f3a2a7b0e16ff3 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Thu, 19 Aug 2021 18:34:30 +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-jnhb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile-jnhb b/Dockerfile-jnhb index f0cbf67..3879ff8 100644 --- a/Dockerfile-jnhb +++ b/Dockerfile-jnhb @@ -1,4 +1,7 @@ FROM openjdk:8u292-jre-buster ARG JAR_FILE=/target/*.jar COPY ${JAR_FILE} pollutant-data.jar -ENTRYPOINT ["java","-jar","-Dspring.profiles.active=jnhb","/pollutant-data.jar"] \ No newline at end of file +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 \ No newline at end of file