dockerfile 408 B

1234567891011121314151617
  1. # 基础镜像
  2. FROM nginx
  3. # author
  4. MAINTAINER ruoyi
  5. # 挂载目录
  6. VOLUME /home/ruoyi/projects/ruoyi-ui
  7. # 创建目录
  8. RUN mkdir -p /home/ruoyi/projects/ruoyi-ui
  9. # 指定路径
  10. WORKDIR /home/ruoyi/projects/ruoyi-ui
  11. # 复制conf文件到路径
  12. COPY ./conf/nginx.conf /etc/nginx/nginx.conf
  13. # 复制html文件到路径
  14. COPY ./html/dist /home/ruoyi/projects/ruoyi-ui
  15. COPY simsun.ttc /usr/share/fonts/simsun.ttc