Dockerfile 932 B

123456789101112131415161718192021222324252627282930313233343536
  1. FROM nginx:alpine
  2. LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
  3. ENV PIP_BREAK_SYSTEM_PACKAGES=1
  4. RUN apk add --no-cache nginx \
  5. python3 py3-pip \
  6. supervisor
  7. RUN apk add --no-cache --virtual .build-deps \
  8. gcc \
  9. musl-dev \
  10. python3-dev \
  11. linux-headers \
  12. && pip install --break-system-packages psutil \
  13. && apk del .build-deps
  14. RUN pip install --break-system-packages \
  15. mysql-connector-python \
  16. jinja2 \
  17. redis \
  18. dnspython
  19. RUN mkdir -p /etc/nginx/includes
  20. COPY data/Dockerfiles/bootstrap /bootstrap
  21. COPY data/Dockerfiles/nginx/docker-entrypoint.sh /
  22. COPY data/Dockerfiles/nginx/supervisord.conf /etc/supervisor/supervisord.conf
  23. COPY data/Dockerfiles/nginx/stop-supervisor.sh /usr/local/sbin/stop-supervisor.sh
  24. RUN chmod +x /docker-entrypoint.sh
  25. RUN chmod +x /usr/local/sbin/stop-supervisor.sh
  26. CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]