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