mailcow-dockerized/data/Dockerfiles/dockerapi/Dockerfile

25 lines
475 B
Docker
Raw Normal View History

2022-12-08 23:09:20 +08:00
FROM alpine:3.17
LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
2019-05-21 03:27:47 +08:00
WORKDIR /app
RUN apk add --update --no-cache python3 \
py3-pip \
openssl \
tzdata \
2022-08-10 02:29:33 +08:00
py3-psutil \
&& pip3 install --upgrade pip \
fastapi \
uvicorn \
aiodocker \
2023-01-25 16:31:22 +08:00
docker \
aioredis
RUN mkdir /app/modules
2022-08-23 17:57:05 +08:00
COPY docker-entrypoint.sh /app/
COPY main.py /app/main.py
COPY modules/ /app/modules/
2022-08-23 17:57:05 +08:00
ENTRYPOINT ["/bin/sh", "/app/docker-entrypoint.sh"]
CMD exec python main.py