From 5a05af4764cc6e384c4e9e68f09661faa97940e5 Mon Sep 17 00:00:00 2001 From: Username Date: Tue, 20 Jan 2026 08:25:16 +0100 Subject: [PATCH] containerfile: use --no-deps to prevent jaraco.context downgrade --- Containerfile.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Containerfile.slim b/Containerfile.slim index be173b5..53b91e2 100644 --- a/Containerfile.slim +++ b/Containerfile.slim @@ -21,7 +21,7 @@ RUN pip install --no-cache-dir --upgrade "pip>=25.3" wheel # Install Python dependencies (includes security pins from requirements.txt) COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt gunicorn && \ - pip install --no-cache-dir --force-reinstall "jaraco.context>=6.1.0" + pip install --no-cache-dir --force-reinstall --no-deps "jaraco.context>=6.1.0" # Stage 2: Alpine runtime (minimal) @@ -34,7 +34,7 @@ LABEL description="Minimal secure pastebin REST API (Alpine)" COPY requirements.txt /tmp/ RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r /tmp/requirements.txt && \ - pip install --no-cache-dir --force-reinstall "jaraco.context>=6.1.0" && \ + pip install --no-cache-dir --force-reinstall --no-deps "jaraco.context>=6.1.0" && \ rm /tmp/requirements.txt # Create non-root user