Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions services/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN npm init -y >/dev/null 2>&1 && npm install --no-audit --no-fund \
# --- python build stage (B3): a full toolchain compiles any source-only wheel HERE, then we lift only
# the installed packages into the runtime image below. gcc + headers never ship to production, so the
# runtime image is smaller and carries no compiler in its attack surface. ---
FROM python:3.12-slim@sha256:57cd7c3a7a273101a6485ba99423ee568157882804b1124b4dd04266317710de AS pybuild
FROM python:3.15-slim@sha256:65a65fc7b30b06cb6df4930fd4650697cb23f4c2698ab81fc87e4b031bc36928 AS pybuild
# build toolchain + the same shared libs, so wheels that need to compile can link during install
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 libglib2.0-0 build-essential python3-dev \
Expand All @@ -42,7 +42,7 @@ RUN pip install --prefix=/install --require-hashes -r /tmp/req/requirements.lock
COPY services/api/src/aec_api/supply_chain.py /tmp/purge/aec_api/supply_chain.py
RUN touch /tmp/purge/aec_api/__init__.py && PYTHONPATH=/tmp/purge python -m aec_api.supply_chain --purge && rm -rf /tmp/purge

FROM python:3.12-slim@sha256:57cd7c3a7a273101a6485ba99423ee568157882804b1124b4dd04266317710de AS runtime
FROM python:3.15-slim@sha256:65a65fc7b30b06cb6df4930fd4650697cb23f4c2698ab81fc87e4b031bc36928 AS runtime

WORKDIR /app
ENV PYTHONUNBUFFERED=1 \
Expand Down
Loading