dockerfile 325 B

123456789101112131415
  1. # 基础镜像
  2. FROM openjdk:8-jre
  3. # author
  4. MAINTAINER vctgo
  5. # 挂载目录
  6. VOLUME /home/vctgo
  7. # 创建目录
  8. RUN mkdir -p /home/vctgo
  9. # 指定路径
  10. WORKDIR /home/vctgo
  11. # 复制jar文件到路径
  12. COPY ./jar/vctgo-monitor.jar /home/vctgo/vctgo-monitor.jar
  13. # 启动系统服务
  14. ENTRYPOINT ["java","-jar","vctgo-monitor.jar"]