From c914928aef2eeac1a2f29033ecd01b9aef6f60ad Mon Sep 17 00:00:00 2001 From: wangjx <1609724385@qq.com> Date: Thu, 24 Jun 2021 23:14:39 +0800 Subject: [PATCH] =?UTF-8?q?nacos=E6=8C=81=E4=B9=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 168f12e4..ba32460d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ FROM java:8 MAINTAINER king <1609724385@qq.com> VOLUME /tmp -COPY sentinel-core/target/sentinel-core.jar core.jar -COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas +#COPY sentinel-core/target/sentinel-core.jar core.jar +#COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas ENV TimeZone=Asia/Shanghai ENV active=test ENV JAVA_OPTS="-Xmx512M -Xms512M" @@ -17,7 +17,6 @@ COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas #ENV JAVA_OPTS="-Xmx512M -Xms512M" #RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone #EXPOSE 8098 -ENTRYPOINT java $JAVA_OPTS -jar /core.jar --spring.profiles.active=$active +#ENTRYPOINT java $JAVA_OPTS -jar /core.jar --spring.profiles.active=$active -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 +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