Skip to content

Commit

Permalink
Merge pull request #1979 from rtg0795/cp_r2.8_20220209_094015
Browse files Browse the repository at this point in the history
Fix the bug running get-pip.py on python3.6.
  • Loading branch information
rtg0795 authored Feb 9, 2022
2 parents fd5650a + 34f4d3c commit 9400ef1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tensorflow_serving/tools/docker/Dockerfile.devel
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
python3 get-pip.py && \
rm get-pip.py

# Install python 3.7.
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && apt-get install -y \
Expand All @@ -62,6 +58,10 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
# Make python3.7 the default python version
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 0

RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
python3 get-pip.py && \
rm get-pip.py

RUN pip3 --no-cache-dir install \
future>=0.17.1 \
grpcio \
Expand Down
8 changes: 4 additions & 4 deletions tensorflow_serving/tools/docker/Dockerfile.devel-mkl
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
python3 get-pip.py && \
rm get-pip.py

# Install python 3.7.
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && apt-get install -y \
Expand All @@ -62,6 +58,10 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
# Make python3.7 the default python version
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 0

RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
python3 get-pip.py && \
rm get-pip.py

RUN pip3 --no-cache-dir install \
future>=0.17.1 \
grpcio \
Expand Down

0 comments on commit 9400ef1

Please sign in to comment.