From 8cfdb8aa9423842099f0f6d0fdbfea974cf654fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Wed, 16 Mar 2022 23:43:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Dockerfile):=20jdk=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mall-ums/ums-boot/Dockerfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/mall-ums/ums-boot/Dockerfile b/mall-ums/ums-boot/Dockerfile index adac1d224..966426873 100644 --- a/mall-ums/ums-boot/Dockerfile +++ b/mall-ums/ums-boot/Dockerfile @@ -1,6 +1,12 @@ -FROM openjdk:8-jdk-alpine -VOLUME /tmp -ADD target/ums-boot.jar mall-ums.jar -ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/mall-ums.jar"] -EXPOSE 8601 +FROM openjdk:8-jre +MAINTAINER youlai youlaitech@163.com + RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezone + +VOLUME /tmp + +ADD target/ums-boot.jar mall-ums.jar + +ENTRYPOINT ["java", "-Xmx128m", "-Djava.security.egd=file:/dev/./urandom","-jar","/mall-ums.jar"] + +EXPOSE 8601