dockerfile 396 B

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