workspace - install pip from python script
This commit is contained in:
parent
f031ded6dd
commit
cc88f7b382
|
@ -1124,7 +1124,10 @@ RUN if [ ${INSTALL_SYMFONY} = true ]; then \
|
||||||
ARG INSTALL_PYTHON=false
|
ARG INSTALL_PYTHON=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
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 pip \
|
||||||
&& python -m pip install --upgrade virtualenv \
|
&& python -m pip install --upgrade virtualenv \
|
||||||
;fi
|
;fi
|
||||||
|
@ -1136,7 +1139,10 @@ RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
||||||
ARG INSTALL_PYTHON3=false
|
ARG INSTALL_PYTHON3=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_PYTHON3} = true ]; then \
|
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 --force-reinstall pip \
|
||||||
&& python3 -m pip install --upgrade virtualenv \
|
&& python3 -m pip install --upgrade virtualenv \
|
||||||
;fi
|
;fi
|
||||||
|
|
Loading…
Reference in New Issue