Pārlūkot izejas kodu

nacos持久化

master
wangjx pirms 3 gadiem
vecāks
revīzija
6a7bc0f0c7
1 mainītis faili ar 4 papildinājumiem un 10 dzēšanām
  1. +4
    -10
      Dockerfile

+ 4
- 10
Dockerfile Parādīt failu

@@ -2,20 +2,14 @@ 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
ENV TimeZone=Asia/Shanghai
ENV active=test
ENV JAVA_OPTS="-Xmx512M -Xms512M"
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
#EXPOSE 8098

COPY sentinel-dashboard/target/sentinel-dashboard.jar app.jar
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
#ENV TimeZone=Asia/Shanghai
#ENV active=test
#ENV JAVA_OPTS="-Xmx512M -Xms512M"
#RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
ENV TimeZone=Asia/Shanghai
ENV active=test
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



Notiek ielāde…
Atcelt
Saglabāt