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/arms/retriever/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
# Retriever Arm Dockerfile - Multi-stage build for Python service
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

This upgrade to Python 3.14 will cause the Docker build to fail. The COPY instruction on line 41, which copies packages from the builder stage to the runtime stage, has a hardcoded path for Python 3.13.

# line 41
COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages

Because both the builder stage (updated here on line 3) and the runtime stage (updated on line 26) now use Python 3.14, this path is incorrect for both the source and destination. The build will fail with a 'file not found' error.

To fix this, line 41 must be updated to use the Python 3.14 path:

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

To make this file more robust for future upgrades, I recommend using a build argument to define the Python version and using it to construct the path, avoiding hardcoded version numbers.


# Install system dependencies
RUN apt-get update && apt-get install -y \
Expand All @@ -23,7 +23,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