From f656d6140e091c163e90f578ea2452705fc314a3 Mon Sep 17 00:00:00 2001 From: Schnuecks <27301329+Schnuecks@users.noreply.github.com> Date: Wed, 28 Oct 2026 13:53:11 +0100 Subject: [PATCH] Remove pip from the image --- CHANGELOG.md | 6 ++++++ Dockerfile | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6a06b2..c2fbb20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.11.1 + +- **pip removed from the image:** pip is only needed to build the image. It brought its + own copies of urllib3 and msgpack with known vulnerabilities, which the image scan + reported. RDAPI never used them; the image now contains no pip at all. + ## 0.11.0 - **Alarms in the history:** a new tab under “History” shows the alarms the RustDesk app diff --git a/Dockerfile b/Dockerfile index 2515298..e42f6c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,11 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ WORKDIR /srv COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt +# pip wird zur Laufzeit nicht gebraucht und bringt eigene, oft veraltete Pakete mit +# (urllib3, msgpack …), die der Image-Scan meldet: nach der Installation entfernen. +RUN pip install --no-cache-dir -r requirements.txt \ + && pip uninstall -y pip \ + && rm -rf /usr/local/lib/python3*/ensurepip/_bundled COPY rdapi ./rdapi # Läuft ohne Root; compose kann mit user: PUID:PGID einen anderen Benutzer setzen