From 5fda44f03b55eb9bf012458f972ebadf71d46c8e Mon Sep 17 00:00:00 2001 From: 3np <3np@example.com> Date: Wed, 24 Sep 2025 08:59:40 +0000 Subject: [PATCH 1/3] docker: skip redundant wheel install bookworm comes with python3-wheel 0.38 --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 30779464d..4c5b6a162 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,6 @@ COPY . . RUN apt-get update && apt-get install -y --no-install-recommends gnupg ca-certificates=* curl=* \ python3-pip=* python3=* \ && pip3 config set global.break-system-packages true \ - && pip3 install 'wheel>=0.35.1' \ && ./install.sh --docker-install \ && apt-get purge -y --autoremove python3-pip \ && apt-get clean \ From 388416a26243828c85d8c4031577364b4bc2ac60 Mon Sep 17 00:00:00 2001 From: 3np <3np@example.com> Date: Wed, 24 Sep 2025 09:00:56 +0000 Subject: [PATCH 2/3] install: only upgrade setuptools for venv --- install.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/install.sh b/install.sh index 2e530819a..cd7fcd49b 100755 --- a/install.sh +++ b/install.sh @@ -604,8 +604,6 @@ main () fi # shellcheck source=/dev/null source "${jm_root}/bin/activate" - else - upgrade_setuptools fi if [[ ${build_local_tor} == "1" ]]; then if ! tor_deps_install; then From cc35e9d4e60c8b3852151f44d46a648be82863b8 Mon Sep 17 00:00:00 2001 From: 3np <3np@example.com> Date: Wed, 29 Oct 2025 08:39:17 +0000 Subject: [PATCH 3/3] docker: uninstall build dependencies from runtime image --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4c5b6a162..59a5caf82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends gnupg ca-certif python3-pip=* python3=* \ && pip3 config set global.break-system-packages true \ && ./install.sh --docker-install \ - && apt-get purge -y --autoremove python3-pip \ + && apt-get purge -y --autoremove \ + python3-dev python3-pip \ + automake build-essential cpp pkg-config libffi-dev libssl-dev \ && apt-get clean \ && rm -rf /var/lib/apt/lists/*