dockerfile 744 B

123456789101112131415161718192021222324
  1. # 基础镜像
  2. FROM nginx
  3. # author
  4. MAINTAINER vctgo
  5. # 设置时区
  6. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
  7. # 挂载平台端目录
  8. VOLUME /home/vctgo/projects/platform
  9. # 挂载幼儿园端目录
  10. VOLUME /home/vctgo/projects/kindergarten
  11. # 创建平台端目录
  12. RUN mkdir -p /home/vctgo/projects/platform
  13. # 创建幼儿园端目录
  14. RUN mkdir -p /home/vctgo/projects/kindergarten
  15. # 指定路径
  16. WORKDIR /home/vctgo/projects/platform
  17. # 复制conf文件到路径
  18. COPY ./conf/nginx.conf /etc/nginx/nginx.conf
  19. # 复制平台端文件到路径
  20. COPY ./html/platform /home/vctgo/projects/platform
  21. # 复制幼儿园端文件到路径
  22. COPY ./html/kindergarten /home/vctgo/projects/kindergarten