wlcb-smart-city-usercenter/Dockerfile

9 lines
305 B
Docker

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