From 1704b5c61a38b9dddae3f7fe24c47e90c43909a4 Mon Sep 17 00:00:00 2001 From: Cedric Pollefeys Date: Mon, 2 Nov 2026 14:16:10 -0500 Subject: [PATCH] Use the pinned Alpine base and drop pip from the pricing image (#15) Co-Authored-By: Claude Opus 5.5 --- pricing/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pricing/Dockerfile b/pricing/Dockerfile index a380e8c..aae8d70 100644 --- a/pricing/Dockerfile +++ b/pricing/Dockerfile @@ -1,9 +1,10 @@ -FROM python:3.13-slim@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1 +FROM python:3.13-alpine3.23@sha256:e4aeaca9081549f19bd5bc8605ed5ab257ba34f97e0471f8e09161f45b4b08b8 ARG APP_COMMIT=development ENV APP_COMMIT=$APP_COMMIT PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 WORKDIR /app COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt +# pip is not needed at runtime, and its bundled packages carry scanner findings. +RUN pip install --no-cache-dir -r requirements.txt && python -m pip uninstall -y pip && rm -rf /usr/local/lib/python3.13/ensurepip COPY app.py . USER 10001:10001 EXPOSE 8000