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/orchestrator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
# Orchestrator Service Dockerfile - Multi-stage build for production
FROM python:3.13.7-slim as builder
FROM python:3.14.2-slim as builder

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Upgrading the Python base image is a good security measure. However, this change will break the Docker build because the COPY instruction on line 43 has a hardcoded path to python3.13.

With the base image updated to python:3.14.2-slim, the path for site-packages will now be /usr/local/lib/python3.14/site-packages. You need to update line 43 accordingly:

COPY --from=builder /usr/local/lib/python3.14/site-packages /usr/local/lib/python3.14/site-packages

To prevent this issue in the future, consider using build arguments for the Python version. This would allow you to update the version in a single place for both FROM and COPY instructions.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update site-packages path to match Python 3.14 image

The base image was bumped to python:3.14.2-slim, but the runtime stage still copies dependencies from /usr/local/lib/python3.13/site-packages (see line 43). The builder will now install packages under the 3.14 path, so this COPY either fails with “no such file or directory” during docker build or produces an image missing all dependencies. The site-packages path needs to be updated to match the new Python version.

Useful? React with 👍 / 👎.


# Install system dependencies for building
RUN apt-get update && apt-get install -y \
Expand All @@ -24,7 +24,7 @@ RUN poetry config virtualenvs.create false && \
poetry install --only main --no-interaction --no-ansi

# Runtime stage
FROM python:3.13.7-slim
FROM python:3.14.2-slim

# Install runtime dependencies
RUN apt-get update && apt-get install -y \
Expand Down
Loading