Dockerfile 403 B

1234567891011
  1. # production environment
  2. # FROM nginx:1.25.0-alpine
  3. FROM georgjung/nginx-brotli:1.25-alpine
  4. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
  5. echo 'Asia/Shanghai' >/etc/timezone
  6. COPY /dist /usr/share/nginx/html
  7. COPY /doc/.vuepress/dist /usr/share/nginx/html/doc
  8. RUN rm /etc/nginx/conf.d/default.conf
  9. COPY ./conf/nginx.conf /etc/nginx/
  10. EXPOSE 80 443
  11. CMD ["nginx", "-g", "daemon off;"]