From: zhihui wu Date: Tue, 24 Apr 2018 07:07:45 +0000 (+0800) Subject: bugfix: pip 10 can't work X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=d415712aeaf87dd6d7383a7649e15a9350aba07b;p=qtip.git bugfix: pip 10 can't work Docker image build failed on upgrading pip to 10.0.0 . Solution: https://github.com/pypa/pip/issues/5240#issuecomment-383115342 Change-Id: I330dedf9dbc32d8bdac5b8cb87b5123187007e2e Signed-off-by: zhihui wu --- diff --git a/docker/Dockerfile b/docker/Dockerfile index 5d93d591..8d9313d2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -41,7 +41,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* RUN locale-gen en_US en_US.UTF-8 \ - && pip install -U pip \ + && python -m pip install -U pip && pip install -U setuptools #Cloning Repos diff --git a/docker/Dockerfile.local b/docker/Dockerfile.local index 86e86dcd..246895b7 100644 --- a/docker/Dockerfile.local +++ b/docker/Dockerfile.local @@ -41,7 +41,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* RUN locale-gen en_US en_US.UTF-8 \ - && pip install -U pip \ + && python -m pip install -U pip \ && pip install -U setuptools COPY . $REPOS_DIR/qtip