Dockerfile 350 B

12345678910
  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. RUN rm /etc/nginx/conf.d/default.conf
  8. COPY ./conf/nginx.conf /etc/nginx/
  9. EXPOSE 2080
  10. CMD ["nginx", "-g", "daemon off;"]