add "--virtual .build-dependencies"

This commit is contained in:
Christian Burmeister 2019-05-21 19:51:03 +02:00 committed by GitHub
parent 9afa2730ac
commit 7032ea00d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,12 @@ LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
WORKDIR /app
RUN apk add -U --no-cache python3 tzdata python3-dev gcc musl-dev openssl-dev libffi-dev openssl\
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 python3-dev gcc musl-dev openssl-dev libffi-dev
&& apk del .build-dependencies
COPY server.py /
COPY server.py /app/
CMD ["python3", "-u", "/server.py"]
CMD ["python3", "-u", "/app/server.py"]