File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,15 @@ RUN \
3030 python${PYTHON_VERSION} \
3131 python${PYTHON_VERSION}-dev \
3232 $( if [ "${PYTHON_VERSION%%.*}" -eq 3 ] && [ "${PYTHON_VERSION#*.}" -lt 10 ]; then echo "python${PYTHON_VERSION}-distutils" ; fi ) \
33- python${PYTHON_VERSION}-pip \
3433 curl \
3534 wget && \
3635 rm -rf /var/lib/apt/lists/* && \
3736 # Set the default python and install PIP packages
3837 update-alternatives --install /usr/bin/python${PYTHON_VERSION%%.*} python${PYTHON_VERSION%%.*} /usr/bin/python${PYTHON_VERSION} 1 && \
39- update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1
38+ update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1 && \
39+ # install python dependencies
40+ PIP_URL="https://bootstrap.pypa.io/get-pip.py" && \
41+ curl $PIP_URL | python
4042
4143ENV PYTHONPATH="/usr/lib/python${PYTHON_VERSION}/site-packages:/usr/local/lib/python${PYTHON_VERSION}/site-packages"
4244
You can’t perform that action at this time.
0 commit comments