Skip to content

Commit

Permalink
install pip with | (#31)
Browse files Browse the repository at this point in the history
* install pip with |
* curl
  • Loading branch information
Borda authored Sep 2, 2023
1 parent 47d2739 commit 8dfcafd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
$( [ ${PYTHON_VERSION%%.*} -ge 3 ] && echo "python${PYTHON_VERSION}-distutils" ) \
curl \
wget \
&& \

Expand All @@ -35,13 +36,12 @@ RUN \
# install python dependencies
# sysctl -w net.ipv4.ip_forward=1 ; \
if [[ "$PYTHON_VERSION" == "2.7" || "$PYTHON_VERSION" == "3.6" ]]; then \
wget https://bootstrap.pypa.io/pip/$PYTHON_VERSION/get-pip.py --progress=bar:force:noscroll --no-check-certificate ; \
PIP_URL="https://bootstrap.pypa.io/pip/$PYTHON_VERSION/get-pip.py" ; \
else \
apt-get -y install --no-install-recommends python${PYTHON_VERSION}-distutils ; \
wget https://bootstrap.pypa.io/get-pip.py --progress=bar:force:noscroll --no-check-certificate ; \
PIP_URL="https://bootstrap.pypa.io/get-pip.py" ; \
fi && \
python${PYTHON_VERSION} get-pip.py && \
rm get-pip.py && \
curl $PIP_URL | python && \
rm -rf /var/lib/apt/lists/*

ENV PYTHONPATH="/usr/lib/python${PYTHON_VERSION}/site-packages:/usr/local/lib/python${PYTHON_VERSION}/site-packages"
Expand Down
8 changes: 4 additions & 4 deletions gpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RUN \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
$( [ ${PYTHON_VERSION%%.*} -ge 3 ] && echo "python${PYTHON_VERSION}-distutils" ) \
curl \
wget \
&& \

Expand All @@ -43,13 +44,12 @@ RUN \
# install python dependencies
# sysctl -w net.ipv4.ip_forward=1 ; \
if [[ "$PYTHON_VERSION" == "2.7" || "$PYTHON_VERSION" == "3.6" ]]; then \
wget https://bootstrap.pypa.io/pip/$PYTHON_VERSION/get-pip.py --progress=bar:force:noscroll --no-check-certificate ; \
PIP_URL="https://bootstrap.pypa.io/pip/$PYTHON_VERSION/get-pip.py" ; \
else \
apt-get -y install --no-install-recommends python${PYTHON_VERSION}-distutils ; \
wget https://bootstrap.pypa.io/get-pip.py --progress=bar:force:noscroll --no-check-certificate ; \
PIP_URL="https://bootstrap.pypa.io/get-pip.py" ; \
fi && \
python${PYTHON_VERSION} get-pip.py && \
rm get-pip.py && \
curl $PIP_URL | python && \
rm -rf /var/lib/apt/lists/*

ENV PYTHONPATH="/usr/lib/python${PYTHON_VERSION}/site-packages:/usr/local/lib/python${PYTHON_VERSION}/site-packages"
Expand Down

0 comments on commit 8dfcafd

Please sign in to comment.