1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-01-10 04:18:10 +02:00
mailcow-dockerized/data/Dockerfiles/dockerapi/Dockerfile

27 lines
533 B
Docker
Raw Normal View History

FROM alpine:3.20
LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
2023-12-13 19:39:21 +02:00
ARG PIP_BREAK_SYSTEM_PACKAGES=1
2019-05-20 21:27:47 +02:00
WORKDIR /app
RUN apk add --update --no-cache python3 \
py3-pip \
openssl \
tzdata \
2022-08-09 20:29:33 +02:00
py3-psutil \
2024-01-08 13:07:22 +02:00
py3-redis \
py3-async-timeout \
&& pip3 install --upgrade pip \
fastapi \
uvicorn \
aiodocker \
2024-01-08 13:07:22 +02:00
docker
RUN mkdir /app/modules
2022-08-23 11:57:05 +02:00
COPY docker-entrypoint.sh /app/
COPY main.py /app/main.py
COPY modules/ /app/modules/
2022-08-23 11:57:05 +02:00
ENTRYPOINT ["/bin/sh", "/app/docker-entrypoint.sh"]
CMD ["python", "main.py"]