xz-szwhy/Dockerfile

8 lines
336 B
Docker
Raw Permalink Normal View History

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