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/planner/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
# Planner 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

While upgrading the Python base image is a good security practice, this change as-is will cause the Docker build to fail. The COPY instruction on line 41 hardcodes the Python version in the path for site-packages:

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

With the base image updated to python:3.14.2-slim, this path will be incorrect. The build will fail because the source path /usr/local/lib/python3.13/site-packages will not exist in the builder stage, which now uses Python 3.14.

To fix this, line 41 needs to be updated to use python3.14:

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


# 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