Dockerfile 238 B

12345678
  1. FROM openjdk:11-jre
  2. EXPOSE 8080
  3. # 设置容器时间
  4. ENV TZ=Asia/Shanghai
  5. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  6. ADD target/xjrsoft-boot.jar /app.jar
  7. ENTRYPOINT ["java","-jar","/app.jar"]