From 7836b8c59015337563e0e6669c7464f211f35052 Mon Sep 17 00:00:00 2001 From: Jaume Ferrarons Date: Fri, 10 Jan 2025 09:00:36 +0100 Subject: [PATCH] fix: Remove distutils dependency (#5179) remove distutils --- .../container/frontend/dockerfile/templates/cuda_debian.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bentoml/_internal/container/frontend/dockerfile/templates/cuda_debian.j2 b/src/bentoml/_internal/container/frontend/dockerfile/templates/cuda_debian.j2 index 79811a701c6..01fec18425c 100644 --- a/src/bentoml/_internal/container/frontend/dockerfile/templates/cuda_debian.j2 +++ b/src/bentoml/_internal/container/frontend/dockerfile/templates/cuda_debian.j2 @@ -8,7 +8,7 @@ # add deadsnakes ppa to install python add-apt-repository ppa:deadsnakes/ppa && \ apt-get update -y && \ - apt-get install -y --no-install-recommends --allow-remove-essential {% if "ubuntu22.04" in __base_image__ and __options__python_version == "3.10" %}python{{ __options__python_version }}-jammy{% else %}python{{ __options__python_version }}{% endif %} python{{ __options__python_version }}-dev python{{ __options__python_version }}-distutils + apt-get install -y --no-install-recommends --allow-remove-essential {% if "ubuntu22.04" in __base_image__ and __options__python_version == "3.10" %}python{{ __options__python_version }}-jammy{% else %}python{{ __options__python_version }}{% endif %} python{{ __options__python_version }}-dev RUN ln -sf /usr/bin/python{{ __options__python_version }} /usr/bin/python3 && \ ln -sf /usr/bin/pip{{ __options__python_version }} /usr/bin/pip3