Python
1.37.1: Remove pip/setuptools from the runtime image (Trivy findings)
DerMilderJoghurt976c981ca1af
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 705d1ae..e2657bc 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,11 @@Version numbers follow [SemVer](https://semver.org/): MAJOR.MINOR.PATCH(MAJOR = incompatible change, MINOR = new feature, PATCH = bug fix).+## 1.37.1 – 2026-11-23+- First Trivy scan: 5 findings (severity high), all in old copies of urllib3, msgpack and setuptools bundled with+ pip itself. MirrorSync does not use them, pip is only needed for the build. pip and setuptools are now removed+ from the image after the installation, which clears these findings. Operating system and rclone: no findings.+## 1.37.0 – 2026-11-23- **Dependencies updated:** rclone 1.68 → 1.76, Python 3.12 → 3.14 (Alpine), Flask 3.0.3 → 3.1.3,APScheduler 3.10.4 → 3.11.3, tzdata 2024.2 → 2026.6, segno 1.6.1 → 1.6.6. Waitress, Apprise, webauthn anddiff --git a/Dockerfile b/Dockerfileindex 213c1a1..cc1920c 100644--- a/Dockerfile+++ b/Dockerfile@@ -16,9 +16,14 @@ RUN for i in 1 2 3; do \done; \echo "ERROR: Python packages could not be downloaded from PyPI. Check the Docker host's internet connection/DNS."; \exit 1+# pip/setuptools are only needed for the build. They bundle their own older copies of urllib3 and msgpack that+# vulnerability scanners report, so they are removed from the final image (MirrorSync does not need them at runtime).+RUN pip uninstall -y pip setuptools wheel >/dev/null 2>&1; \+ rm -rf /usr/local/lib/python3*/ensurepip /usr/local/lib/python3*/site-packages/setuptools* \+ /usr/local/lib/python3*/site-packages/pip* /usr/local/bin/pip*COPY app/ .-ARG VERSION=1.37.0+ARG VERSION=1.37.1LABEL org.opencontainers.image.title="MirrorSync" org.opencontainers.image.version=$VERSIONENV TZ=Europe/Berlin CONFIG_DIR=/config LOG_DIR=/logs PORT=8080 PYTHONUNBUFFERED=1VOLUME ["/config", "/logs"]diff --git a/README.de.md b/README.de.mdindex b11bfeb..c339400 100644--- a/README.de.md+++ b/README.de.md@@ -4,7 +4,7 @@# MirrorSync – 1:1-Spiegelung mit Web-GUI und Zeitplänen-Version **1.37.0** · Änderungen siehe [CHANGELOG.md](CHANGELOG.md) (englisch) · [English version](README.md)+Version **1.37.1** · Änderungen siehe [CHANGELOG.md](CHANGELOG.md) (englisch) · [English version](README.md)Ein Docker-Container, der Ordner **einweg 1:1 spiegelt** (wie FreeFileSync „Spiegeln"):Das Ziel wird exakt wie die Quelle, inklusive Löschungen. Als Sync-Motor dient@@ -68,7 +68,7 @@ Geänderte Dateien werden komplett neu übertragen (kein Delta wie bei rsync).## InstallationDas fertige Image liegt in der GitHub Container Registry: `ghcr.io/dermilderjoghurt/mirrorsync`-(für amd64 und arm64, z. B. Raspberry Pi). Tags: `latest` (neueste Version), `1.37.0` (feste Version),+(für amd64 und arm64, z. B. Raspberry Pi). Tags: `latest` (neueste Version), `1.37.1` (feste Version),`1.34` (neuester Patch dieser Version).### Mit Docker Compose (empfohlen)diff --git a/README.md b/README.mdindex 014642d..b477685 100644--- a/README.md+++ b/README.md@@ -4,7 +4,7 @@# MirrorSync – 1:1 mirroring with a web GUI and schedules-Version **1.37.0** · Changes: [CHANGELOG.md](CHANGELOG.md) · [Deutsche Version](README.de.md)+Version **1.37.1** · Changes: [CHANGELOG.md](CHANGELOG.md) · [Deutsche Version](README.de.md)A Docker container that **mirrors folders one-way, 1:1** (like FreeFileSync "Mirror"):the destination becomes an exact copy of the source, including deletions. The sync engine is@@ -67,7 +67,7 @@ Changed files are transferred completely (no delta transfer like rsync).## InstallationThe ready-made image is in the GitHub Container Registry: `ghcr.io/dermilderjoghurt/mirrorsync`-(for amd64 and arm64, e.g. Raspberry Pi). Tags: `latest` (newest version), `1.37.0` (fixed version),+(for amd64 and arm64, e.g. Raspberry Pi). Tags: `latest` (newest version), `1.37.1` (fixed version),`1.34` (newest patch of this version).### With Docker Compose (recommended)diff --git a/app/VERSION b/app/VERSIONindex bf50e91..9cf86ad 100644--- a/app/VERSION+++ b/app/VERSION@@ -1 +1 @@-1.37.0+1.37.1diff --git a/docker-compose.yml b/docker-compose.ymlindex 4058670..c597dc1 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -8,7 +8,7 @@services:mirrorsync:- image: ghcr.io/dermilderjoghurt/mirrorsync:latest # or a fixed version, e.g. :1.37.0+ image: ghcr.io/dermilderjoghurt/mirrorsync:latest # or a fixed version, e.g. :1.37.1# Build it yourself instead of pulling (Dockerfile and app/ in the same folder):# build: .container_name: mirrorsync