rt-sim-training-service/Dockerfile-prd

17 lines
378 B
Plaintext
Raw Permalink Normal View History

FROM openjdk:11
2020-11-26 19:42:35 +08:00
#ADD jre-11 jre-11
2020-11-26 19:42:35 +08:00
ADD target/rtss-0.0.1-SNAPSHOT.jar app.jar
#ENV JAVA_HOME=/jre-11
#ENV PATH=$JAVA_HOME/bin:$PATH
2020-11-26 19:42:35 +08:00
#ENV LANG=C.UTF-8
2020-11-26 19:42:35 +08:00
EXPOSE 9000 19000/tcp
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2020-12-02 12:01:30 +08:00
CMD java -jar -Dfile.encoding=UTF-8 -Dspring.profiles.active=prd -Dhttps.protocols=TLSv1.2 /app.jar