From 039c4d665e70a32b8ce14804153b59862f69449d Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Sun, 6 Sep 2026 22:19:10 +0200 Subject: [PATCH] chore: drop python3-dev from the Docker image (#29731) The apt layer of the Docker image shrinks by about 60 MB. python3-dev installs Debian's own interpreter with its headers, and nothing in the image uses it. The image's Python is the /usr/local build from the base image, which ships its own headers, and it is also the interpreter that installs tool and function requirements at runtime, so Debian's headers were never on the include path of anything built in the container. The zlib headers python3-dev pulled in stay through libmariadb-dev, which also brings the OpenSSL headers, so the optional mariadb connector still builds; the only other header package that goes with it is libexpat1-dev, which nothing in the pinned tree builds against. Part of #29721. --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d70244583b..1e5b033853 100644 --- a/Dockerfile +++ b/Dockerfile @@ -128,7 +128,6 @@ RUN apt-get update && \ apt-get install -y --no-install-recommends \ git build-essential pandoc gcc curl jq ca-certificates \ libmariadb-dev \ - python3-dev \ ffmpeg libsm6 libxext6 zstd \ && rm -rf /var/lib/apt/lists/*