|
@@ -3,10 +3,15 @@ FROM java:8 |
|
|
MAINTAINER king <1609724385@qq.com> |
|
|
MAINTAINER king <1609724385@qq.com> |
|
|
EXPOSE 8102 |
|
|
EXPOSE 8102 |
|
|
VOLUME /tmp |
|
|
VOLUME /tmp |
|
|
COPY target/gd2021.jar gd2021.jar |
|
|
|
|
|
|
|
|
COPY target/dianxin-guizhou-forward-telpo0.0.2.jar dianxin-guizhou-forward-telpo0.0.2.jar |
|
|
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas |
|
|
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas |
|
|
|
|
|
|
|
|
ENV TimeZone=Asia/Shanghai |
|
|
ENV TimeZone=Asia/Shanghai |
|
|
ENV active=dev |
|
|
ENV active=dev |
|
|
ENV JAVA_OPTS="-Xmx256M -Xms256M" |
|
|
ENV JAVA_OPTS="-Xmx256M -Xms256M" |
|
|
|
|
|
|
|
|
|
|
|
#RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
|
|
|
|
|
#RUN echo "Asia/Shanghai" > /etc/timezone |
|
|
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 |
|
|
ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /gd2021.jar --spring.profiles.active=$active |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /dianxin-guizhou-forward-telpo0.0.2.jar --spring.profiles.active=$active |