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