Skip to content

Commit b571def

Browse files
committed
Make python 3.10 default
1 parent 4acbca0 commit b571def

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

tensorflow_serving/tools/docker/Dockerfile.devel-gpu

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,16 @@ RUN apt-get install -y --no-install-recommends \
8686
find /usr/local/cuda-12.2/lib64/ -type f -name 'lib*_static.a' -not -name 'libcudart_static.a' -delete
8787

8888

89-
# Install python 3.9.
90-
RUN sed -i 's/$/ universe/' /etc/apt/sources.list && \
91-
apt-get update && apt-get install -y --no-install-recommends gpg-agent dirmngr && \
92-
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776 && \
93-
echo "deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu jammy main" > /etc/apt/sources.list.d/deadsnakes-ppa.list && \
94-
apt-get update && apt-get install -y \
95-
python3.9 python3.9-dev python3-pip python3.9-venv python3-distutils python3-distutils-extra && \
89+
# Install python 3.10.
90+
RUN apt-get update && apt-get install -y --no-install-recommends \
91+
python3.10 python3-dev python3-pip python3-venv && \
9692
rm -rf /var/lib/apt/lists/* && \
97-
python3.9 -m pip install pip --upgrade && \
98-
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 0
93+
python3 -m pip install --upgrade pip && \
94+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
9995

100-
# Make python3.9 the default python version
96+
# Make python3.10 the default python version
10197
# If updating default python version, also update version in the WORKSPACE file.
102-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 0
98+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
10399

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

0 commit comments

Comments
 (0)