From 2793c0b155b6991f33529afa39247bf74f41ae91 Mon Sep 17 00:00:00 2001 From: Vaclav Petras Date: Wed, 22 Jan 2020 13:13:18 -0500 Subject: [PATCH] Add missing build dependencies regex is a dependency but it needs to be build which requires GCC and musl libc. This also removes the dependencies afterwards in one step to save space. pip is upgrated before installing black. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1adfe62..a6fd271 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,9 @@ FROM python:3.6-alpine RUN mkdir /code WORKDIR /code -RUN pip install black +RUN apk add --no-cache --virtual .build-deps gcc musl-dev \ + && pip install --upgrade pip \ + && pip install black \ + && apk del .build-deps ENTRYPOINT ["black"]