dockerfile 438 B

123456789101112131415161718
  1. # 基础镜像
  2. FROM openjdk:8-jre
  3. # author
  4. MAINTAINER vctgo
  5. # 设置时区
  6. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
  7. # 挂载目录
  8. VOLUME /home/vctgo
  9. # 创建目录
  10. RUN mkdir -p /home/vctgo
  11. # 指定路径
  12. WORKDIR /home/vctgo
  13. # 复制jar文件到路径
  14. COPY ./jar/vctgo-system.jar /home/vctgo/vctgo-system.jar
  15. # 启动系统服务
  16. ENTRYPOINT ["java","-jar","vctgo-system.jar"]