Dockerfile 761 B

12345678910111213141516171819202122232425262728293031323334
  1. FROM alpine:3.21
  2. LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
  3. ARG PIP_BREAK_SYSTEM_PACKAGES=1
  4. WORKDIR /app
  5. RUN apk add --update --no-cache python3 \
  6. bash \
  7. py3-pip \
  8. openssl \
  9. tzdata \
  10. py3-psutil \
  11. py3-redis \
  12. py3-async-timeout \
  13. supervisor \
  14. curl \
  15. && pip3 install --upgrade pip \
  16. fastapi \
  17. uvicorn \
  18. aiodocker \
  19. docker
  20. COPY mailcow-adm/ /app/mailcow-adm/
  21. RUN pip3 install -r /app/mailcow-adm/requirements.txt
  22. COPY api/ /app/api/
  23. COPY docker-entrypoint.sh /app/
  24. COPY supervisord.conf /etc/supervisor/supervisord.conf
  25. COPY stop-supervisor.sh /usr/local/sbin/stop-supervisor.sh
  26. ENTRYPOINT ["/bin/sh", "/app/docker-entrypoint.sh"]
  27. CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]