wlcb-system-duty/Dockerfile

9 lines
285 B
Docker
Raw Normal View History

2022-03-05 22:48:22 +08:00
FROM openjdk:8u292-jre-buster
ARG JAR_FILE=/target/*.jar
COPY ${JAR_FILE} system-duty.jar
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=prod","/system-duty.jar"]
# 时区问题
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone