wlcb-common-population/Dockerfile
wans d91ec7112a 添加kafka
添加docker相关配置
2021-12-28 15:39:32 +08:00

7 lines
325 B
Docker

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