From 9af74c3ff0f286ceef09e7574db2b470b14769f2 Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Thu, 14 Jan 2021 15:27:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 30f8018..64fdd94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,15 @@ FROM java:8 MAINTAINER king <1609724385@qq.com> EXPOSE 8102 VOLUME /tmp -COPY target/gd2021.jar gd2021.jar +COPY target/dianxin-guizhou-forward-telpo0.0.2.jar dianxin-guizhou-forward-telpo0.0.2.jar COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas + ENV TimeZone=Asia/Shanghai ENV active=dev ENV JAVA_OPTS="-Xmx256M -Xms256M" + +#RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime +#RUN echo "Asia/Shanghai" > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone -ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /gd2021.jar --spring.profiles.active=$active \ No newline at end of file + +ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /dianxin-guizhou-forward-telpo0.0.2.jar --spring.profiles.active=$active \ No newline at end of file