Use the pinned Alpine base and drop pip from the pricing image (#15)
seat-back-trivia/pipeline/pr-main There was a failure building this commit
seat-back-trivia/pipeline/pr-main There was a failure building this commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7f568516d1
commit
1704b5c61a
+3
-2
@@ -1,9 +1,10 @@
|
|||||||
FROM python:3.13-slim@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1
|
FROM python:3.13-alpine3.23@sha256:e4aeaca9081549f19bd5bc8605ed5ab257ba34f97e0471f8e09161f45b4b08b8
|
||||||
ARG APP_COMMIT=development
|
ARG APP_COMMIT=development
|
||||||
ENV APP_COMMIT=$APP_COMMIT PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
ENV APP_COMMIT=$APP_COMMIT PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY requirements.txt .
|
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 .
|
COPY app.py .
|
||||||
USER 10001:10001
|
USER 10001:10001
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|||||||
Reference in New Issue
Block a user