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