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.
 
 
 
 
 
 

34 regels
767 B

  1. FROM nginx:1.10-alpine
  2. RUN apk update && apk add \
  3. python3 \
  4. openssl \
  5. && python3 -m ensurepip \
  6. && rm -r /usr/lib/python*/ensurepip \
  7. && pip3 install --upgrade pip setuptools \
  8. && rm -rf /var/cache/apk/*
  9. RUN pip3 install Jinja2==2.8
  10. RUN rm /etc/nginx/nginx.conf
  11. RUN rm /etc/nginx/mime.types
  12. COPY conf.d/nginx.conf /etc/nginx/nginx.conf
  13. COPY conf.d/mime.types /etc/nginx/mime.types
  14. RUN rm /etc/nginx/conf.d/default.conf
  15. COPY conf.d/default.conf /etc/nginx/conf.d/default.conf
  16. RUN mkdir /dockersible
  17. COPY dockersible/ /dockersible
  18. COPY backend.conf.j2 /
  19. COPY install.py /
  20. RUN mkdir /certificates
  21. VOLUME ["/certificates"]
  22. COPY entrypoint.sh /
  23. RUN chmod 755 /entrypoint.sh
  24. ENTRYPOINT ["/entrypoint.sh"]
  25. CMD ["nginx", "-g", "daemon off;"]