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