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