dockerfile 482 B

123456789101112131415
  1. # 基础镜像
  2. FROM openjdk:8-jre
  3. # author
  4. MAINTAINER sentinel
  5. # 挂载目录
  6. VOLUME /home/sentinel
  7. # 创建目录
  8. RUN mkdir -p /home/sentinel
  9. # 指定路径
  10. WORKDIR /home/sentinel
  11. # 复制jar文件到路径
  12. COPY ./jar/sentinel-dashboard-1.8.7.jar /home/sentinel/sentinel-dashboard-1.8.7.jar
  13. # 启动网关服务
  14. ENTRYPOINT ["java","-Dserver.port=8718","-Dcsp.sentinel.dashboard.server=ruoyi-gateway:8719","-Dproject.name=sentinel-dashboard","-jar","sentinel-dashboard-1.8.7.jar"]