Browse Source

IOT调用测试

master
林万龙 3 years ago
parent
commit
67a95bc22c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Dockerfile

+ 1
- 1
Dockerfile View File

@@ -5,6 +5,6 @@ COPY /target/iotgatewayservice.jar iotgatewayservice.jar
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
ENV TimeZone=Asia/Shanghai ENV TimeZone=Asia/Shanghai
ENV active=dev 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 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 ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /iotgatewayservice.jar --spring.profiles.active=$active

Loading…
Cancel
Save