service-user-center/Dockerfile

7 lines
298 B
Docker
Raw Normal View History

2021-08-02 11:26:13 +08:00
FROM openjdk:8u292-jre-buster
ARG JAR_FILE=/target/*.jar
COPY ${JAR_FILE} service-user-center.jar
2021-08-19 18:34:29 +08:00
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=dev","/service-user-center.jar"]
# 时区问题
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone