blob: 3431f9393b22f1e2c095953b7b0584b724b54201 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001FROM alpine:3.17
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02002
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01003LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01004
5WORKDIR /app
6
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02007RUN apk add --update --no-cache python3 \
8 py3-pip \
9 openssl \
10 tzdata \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010011 py3-psutil \
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020012&& pip3 install --upgrade pip \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010013 fastapi \
14 uvicorn \
15 aiodocker \
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010016 docker \
17 aioredis
18RUN mkdir /app/modules
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010019
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010020COPY docker-entrypoint.sh /app/
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010021COPY main.py /app/main.py
22COPY modules/ /app/modules/
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010023
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010024ENTRYPOINT ["/bin/sh", "/app/docker-entrypoint.sh"]
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010025CMD exec python main.py