rt-sim-training-service/Dockerfile-test

17 lines
347 B
Plaintext
Raw Normal View History

2020-11-20 17:23:55 +08:00
from centos:7
ADD jre-11 jre-11
ADD target/rtss-0.0.1-SNAPSHOT.jar app.jar
ENV JAVA_HOME=/jre-11
ENV PATH=$JAVA_HOME/bin:$PATH
ENV LANG=C.UTF-8
EXPOSE 9000 19000/tcp
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2021-04-13 15:39:41 +08:00
CMD java -jar -Dfile.encoding=UTF-8 -Dspring.profiles.active=test /app.jar