Dockerfile 272 B

12345678910
  1. FROM nginx
  2. LABEL maintainer="信息中心研发组 <user@itcast.cn>"
  3. COPY ./dist/ /usr/share/nginx/html/
  4. RUN chmod -R 777 /usr/share/nginx/html/
  5. RUN chmod -R 777 /etc/nginx/conf.d/default.conf
  6. COPY ./default.conf /etc/nginx/conf.d/
  7. CMD ["nginx", "-g", "daemon off;"]