wlcb-system-house/Dockerfile

7 lines
313 B
Docker
Raw Normal View History

FROM openjdk:8u292-jre-buster
ARG JAR_FILE=/target/*.jar
2021-12-31 11:20:48 +08:00
COPY ${JAR_FILE} systemhouse-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=prod","/systemhouse-0.0.1-SNAPSHOT.jar"]
# 时区问题
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone