You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
551 B

  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;"]