From 67a95bc22c34a00ead0e2debb112fcd3cc3c4cb2 Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Fri, 16 Apr 2021 14:34:09 +0800 Subject: [PATCH] =?UTF-8?q?IOT=E8=B0=83=E7=94=A8=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6cf8ada..fe9e454 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,6 @@ COPY /target/iotgatewayservice.jar iotgatewayservice.jar COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas ENV TimeZone=Asia/Shanghai ENV active=dev -ENV JAVA_OPTS="-Xmx512M -Xms512M" +ENV JAVA_OPTS="-Xmx128M -Xms128M" RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /iotgatewayservice.jar --spring.profiles.active=$active \ No newline at end of file