From 7032ea00d0022a93f840cafa0914466cb59e9c8d Mon Sep 17 00:00:00 2001 From: Christian Burmeister Date: Tue, 21 May 2019 19:51:03 +0200 Subject: [PATCH] add "--virtual .build-dependencies" --- data/Dockerfiles/dockerapi/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/data/Dockerfiles/dockerapi/Dockerfile b/data/Dockerfiles/dockerapi/Dockerfile index 9f7498cf..6d0a0b62 100644 --- a/data/Dockerfiles/dockerapi/Dockerfile +++ b/data/Dockerfiles/dockerapi/Dockerfile @@ -3,11 +3,12 @@ LABEL maintainer "Andre Peters " WORKDIR /app -RUN apk add -U --no-cache python3 tzdata python3-dev gcc musl-dev openssl-dev libffi-dev openssl\ - && pip3 install --upgrade pip \ - && pip3 install --upgrade docker flask flask-restful pyOpenSSL \ - && apk del python3-dev gcc musl-dev openssl-dev libffi-dev +RUN apk add --update --no-cache python3 openssl tzdata \ + && apk add --update --no-cache --virtual .build-dependencies gcc python3-dev musl-dev libffi-dev openssl-dev \ + && pip3 install --upgrade pip \ + && pip3 install --upgrade docker flask flask-restful pyOpenSSL \ + && apk del .build-dependencies -COPY server.py / +COPY server.py /app/ -CMD ["python3", "-u", "/server.py"] +CMD ["python3", "-u", "/app/server.py"]