Dockerfile 475 B

12345678910111213141516171819202122232425
  1. FROM alpine:3.17
  2. LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
  3. WORKDIR /app
  4. RUN apk add --update --no-cache python3 \
  5. py3-pip \
  6. openssl \
  7. tzdata \
  8. py3-psutil \
  9. && pip3 install --upgrade pip \
  10. fastapi \
  11. uvicorn \
  12. aiodocker \
  13. docker \
  14. aioredis
  15. RUN mkdir /app/modules
  16. COPY docker-entrypoint.sh /app/
  17. COPY main.py /app/main.py
  18. COPY modules/ /app/modules/
  19. ENTRYPOINT ["/bin/sh", "/app/docker-entrypoint.sh"]
  20. CMD exec python main.py