From cc88f7b382c136d5e78a6ddea4c2b96e5cbbeabc Mon Sep 17 00:00:00 2001 From: ahkui Date: Mon, 24 May 2021 02:58:38 +0800 Subject: [PATCH] workspace - install pip from python script --- workspace/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 3532bf57..cf8fa0d7 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -1124,7 +1124,10 @@ RUN if [ ${INSTALL_SYMFONY} = true ]; then \ ARG INSTALL_PYTHON=false RUN if [ ${INSTALL_PYTHON} = true ]; then \ - apt-get -y install python python-pip python-dev build-essential \ + apt-get -y install python python-dev build-essential \ + && curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py \ + && python get-pip.py \ + && rm get-pip.py \ && python -m pip install --upgrade pip \ && python -m pip install --upgrade virtualenv \ ;fi @@ -1136,7 +1139,10 @@ RUN if [ ${INSTALL_PYTHON} = true ]; then \ ARG INSTALL_PYTHON3=false RUN if [ ${INSTALL_PYTHON3} = true ]; then \ - apt-get -y install python3 python3-pip python3-dev build-essential \ + apt-get -y install python3 python3-dev build-essential \ + && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ + && python3 get-pip.py \ + && rm get-pip.py \ && python3 -m pip install --upgrade --force-reinstall pip \ && python3 -m pip install --upgrade virtualenv \ ;fi