Browse Source

添加启动参数

master
wangjx 3 years ago
parent
commit
dca850da81
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      Dockerfile

+ 1
- 0
Dockerfile View File

@@ -7,4 +7,5 @@ ENV TimeZone=Asia/Shanghai
ENV active=dev ENV active=dev
ENV JAVA_OPTS="-Xmx512M -Xms512M" ENV JAVA_OPTS="-Xmx512M -Xms512M"
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
EXPOSE 7777
ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dserver.port=7777 -Dcsp.sentinel.dashboard.server=localhost:7777 -Dproject.name=sentinel-dashboard -jar /sentinel_dashboard.jar --spring.profiles.active=$active ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dserver.port=7777 -Dcsp.sentinel.dashboard.server=localhost:7777 -Dproject.name=sentinel-dashboard -jar /sentinel_dashboard.jar --spring.profiles.active=$active

Loading…
Cancel
Save