Skip to content

Commit 00dfc64

Browse files
committed
Move python distutils installation to the later step
1 parent 73b89c9 commit 00dfc64

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tensorflow_serving/tools/docker/Dockerfile.devel-gpu

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,19 @@ RUN apt-get install -y --no-install-recommends \
7878
openjdk-11-jdk\
7979
openjdk-11-jre-headless \
8080
pkg-config \
81-
python3-dev \
8281
software-properties-common \
8382
swig \
8483
unzip \
8584
wget \
8685
zip \
87-
zlib1g-dev \
88-
python3-distutils \
89-
python3-distutils-extra && \
86+
zlib1g-dev && \
9087
find /usr/local/cuda-12.2/lib64/ -type f -name 'lib*_static.a' -not -name 'libcudart_static.a' -delete
9188

9289

9390
# Install python 3.9.
9491
RUN add-apt-repository ppa:deadsnakes/ppa && \
9592
apt-get update && apt-get install -y \
96-
python3.9 python3.9-dev python3-pip python3.9-venv && \
93+
python3.9 python3.9-dev python3-pip python3.9-venv python3-distutils python3-distutils-extra python3-dev && \
9794
rm -rf /var/lib/apt/lists/* && \
9895
python3.9 -m pip install pip --upgrade && \
9996
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 0

0 commit comments

Comments
 (0)