Dockerfile 321 B

1234567891011
  1. FROM openjdk:8-jre
  2. MAINTAINER zuihou 306479353@qq.com
  3. RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
  4. && echo "Asia/Shanghai" > /etc/timezone
  5. ARG JAR_FILE
  6. COPY ${JAR_FILE} /app.jar
  7. ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app.jar"]
  8. CMD ["--spring.profiles.active=docker"]