Skip to content

Commit 1b0c3f3

Browse files
committed
Manually add deadsnakes in Dockerfile step
1 parent 04b6c3c commit 1b0c3f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tensorflow_serving/tools/docker/Dockerfile.devel-gpu

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ RUN apt-get install -y --no-install-recommends \
8787

8888

8989
# Install python 3.9.
90-
RUN apt-get update && apt-get install -y \
90+
RUN apt-get update && apt-get install -y --no-install-recommends gpg-agent dirmngr && \
91+
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776 && \
92+
echo "deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal main" > /etc/apt/sources.list.d/deadsnakes-ppa.list && \
93+
apt-get update && apt-get install -y \
9194
python3.9 python3.9-dev python3-pip python3.9-venv python3-distutils python3-distutils-extra python3-dev && \
9295
rm -rf /var/lib/apt/lists/* && \
9396
python3.9 -m pip install pip --upgrade && \

0 commit comments

Comments
 (0)