From 887373c006ebb982376921d371ea34f5b69f439f Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Thu, 24 Jan 2019 11:04:29 +0100 Subject: [PATCH] Fixed a docker build issue with pip 19 --- api/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 92a4d7f4..c735ab39 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -25,15 +25,18 @@ RUN \ RUN mkdir /requirements COPY ./requirements/base.txt /requirements/base.txt +# hack around https://github.com/pypa/pip/issues/6158#issuecomment-456619072 +ENV PIP_DOWNLOAD_CACHE=/noop/ RUN \ echo 'fixing requirements file for alpine' && \ sed -i '/Pillow/d' /requirements/base.txt && \ \ \ echo 'installing pip requirements' && \ - pip3 install --no-cache-dir --upgrade pip && \ - pip3 install --no-cache-dir setuptools wheel && \ - pip3 install --no-cache-dir -r /requirements/base.txt + pip3 install --upgrade pip && \ + pip3 install setuptools wheel && \ + pip3 install -r /requirements/base.txt && \ + rm -rf $PIP_DOWNLOAD_CACHE ARG install_dev_deps=0 COPY ./requirements/*.txt /requirements/ -- GitLab