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