12345678910111213141516 |
- # 基础镜像
- FROM openjdk:11.0.16-jre
- # author
- MAINTAINER ruoyi
- # 挂载目录
- VOLUME /home/ruoyi
- # 创建目录
- RUN mkdir -p /home/ruoyi
- # 指定路径
- WORKDIR /home/ruoyi
- # 复制jar文件到路径
- COPY ./jar/hh-mast.jar /home/ruoyi/hh-mast.jar
- COPY ./jar/bootstrap.yml /home/ruoyi/bootstrap.yml
- # 启动文件服务
- ENTRYPOINT ["java","-jar","hh-mast.jar"]
|