您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627
  1. FROM nginx:stable
  2. RUN apt-get update && apt-get install -y \
  3. python3 \
  4. python3-pip \
  5. openssl \
  6. && rm -rf /var/lib/apt/lists/*
  7. RUN pip3 install --upgrade pip
  8. RUN pip3 install Jinja2==2.8
  9. RUN rm /etc/nginx/nginx.conf
  10. RUN rm /etc/nginx/mime.types
  11. COPY conf.d/nginx.conf /etc/nginx/nginx.conf
  12. COPY conf.d/mime.types /etc/nginx/mime.types
  13. RUN rm /etc/nginx/conf.d/default.conf
  14. COPY backend.conf.j2 /
  15. COPY install.py /
  16. COPY entrypoint.sh /
  17. RUN chmod 755 /entrypoint.sh
  18. ENTRYPOINT ["/entrypoint.sh"]
  19. CMD ["nginx", "-g", "daemon off;"]