workspace - install pip from python script

This commit is contained in:
ahkui 2021-05-24 02:58:38 +08:00
parent f031ded6dd
commit cc88f7b382
1 changed files with 8 additions and 2 deletions

View File

@ -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