Dockerfile 533 B

123456789101112131415161718192021222324252627
  1. FROM alpine:3.20
  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. py3-pip \
  7. openssl \
  8. tzdata \
  9. py3-psutil \
  10. py3-redis \
  11. py3-async-timeout \
  12. && pip3 install --upgrade pip \
  13. fastapi \
  14. uvicorn \
  15. aiodocker \
  16. docker
  17. RUN mkdir /app/modules
  18. COPY docker-entrypoint.sh /app/
  19. COPY main.py /app/main.py
  20. COPY modules/ /app/modules/
  21. ENTRYPOINT ["/bin/sh", "/app/docker-entrypoint.sh"]
  22. CMD ["python", "main.py"]