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