seninel部署
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

23 lines
999B

  1. FROM java:8
  2. MAINTAINER king <1609724385@qq.com>
  3. VOLUME /tmp
  4. #COPY sentinel-core/target/sentinel-core.jar core.jar
  5. #COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
  6. ENV TimeZone=Asia/Shanghai
  7. ENV active=test
  8. ENV JAVA_OPTS="-Xmx512M -Xms512M"
  9. RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
  10. #EXPOSE 8098
  11. COPY sentinel-dashboard/target/sentinel-dashboard.jar app.jar
  12. COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
  13. #ENV TimeZone=Asia/Shanghai
  14. #ENV active=test
  15. #ENV JAVA_OPTS="-Xmx512M -Xms512M"
  16. #RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
  17. #EXPOSE 8098
  18. #ENTRYPOINT java $JAVA_OPTS -jar /core.jar --spring.profiles.active=$active
  19. ENTRYPOINT java $JAVA_OPTS -Dserver.port=7777 -Dcsp.sentinel.dashboard.server=$IP:7777 -Dproject.name=sentinel-dashboard -Dsentinel.dashboard.auth.username=telpo -Dsentinel.dashboard.auth.password=telpo#1234 -jar /app.jar --spring.profiles.active=$active