2021-08-16 22:31:04 +08:00
|
|
|
FROM openjdk:8u292-jre-buster
|
|
|
|
ARG JAR_FILE=/target/*.jar
|
|
|
|
COPY ${JAR_FILE} pollutant-data.jar
|
2021-08-19 18:34:30 +08:00
|
|
|
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=jnhb","/pollutant-data.jar"]
|
|
|
|
|
|
|
|
# 时区问题
|
|
|
|
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|