Skip to content

Commit 9400ef1

Browse files
authored
Merge pull request #1979 from rtg0795/cp_r2.8_20220209_094015
Fix the bug running get-pip.py on python3.6.
2 parents fd5650a + 34f4d3c commit 9400ef1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tensorflow_serving/tools/docker/Dockerfile.devel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4747
apt-get clean && \
4848
rm -rf /var/lib/apt/lists/*
4949

50-
RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
51-
python3 get-pip.py && \
52-
rm get-pip.py
53-
5450
# Install python 3.7.
5551
RUN add-apt-repository ppa:deadsnakes/ppa && \
5652
apt-get update && apt-get install -y \
@@ -62,6 +58,10 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
6258
# Make python3.7 the default python version
6359
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 0
6460

61+
RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
62+
python3 get-pip.py && \
63+
rm get-pip.py
64+
6565
RUN pip3 --no-cache-dir install \
6666
future>=0.17.1 \
6767
grpcio \

tensorflow_serving/tools/docker/Dockerfile.devel-mkl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4747
apt-get clean && \
4848
rm -rf /var/lib/apt/lists/*
4949

50-
RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
51-
python3 get-pip.py && \
52-
rm get-pip.py
53-
5450
# Install python 3.7.
5551
RUN add-apt-repository ppa:deadsnakes/ppa && \
5652
apt-get update && apt-get install -y \
@@ -62,6 +58,10 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
6258
# Make python3.7 the default python version
6359
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 0
6460

61+
RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
62+
python3 get-pip.py && \
63+
rm get-pip.py
64+
6565
RUN pip3 --no-cache-dir install \
6666
future>=0.17.1 \
6767
grpcio \

0 commit comments

Comments
 (0)