您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910
  1. FROM java:8
  2. MAINTAINER king <1609724385@qq.com>
  3. VOLUME /tmp
  4. COPY /target/iotgatewayservice.jar iotgatewayservice.jar
  5. COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
  6. ENV TimeZone=Asia/Shanghai
  7. ENV active=dev
  8. ENV JAVA_OPTS="-Xmx512M -Xms512M"
  9. RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
  10. ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /iotgatewayservice.jar --spring.profiles.active=$active