Dockerfile 283 B

123456
  1. #FROM openjdk:8-jdk-alpine 文件下载会出现空指针错误
  2. FROM java:8
  3. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
  4. COPY ./target/*.jar zkt-project-alarm.jar
  5. ENTRYPOINT ["java", "-jar", "/zkt-project-alarm.jar"]
  6. EXPOSE 8101