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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY ./pyproject.toml /tmp/pyproject.toml
COPY ./poetry.lock /tmp/poetry.lock
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes

FROM python:3.11-slim-bookworm
FROM python:3.14.1-slim-bookworm

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

The suggested base image python:3.14.1-slim-bookworm is invalid and will break your build.

  1. Invalid Version: Python 3.14 has not been released yet, so this Docker image does not exist.
  2. Version Incompatibility: Your pyproject.toml specifies python = "^3.11,<3.12", meaning your project is designed for Python 3.11. Upgrading to a different minor version of Python is a significant breaking change that is not intended by this security patch. Your ruff configuration is also targeting py311.

To fix the security vulnerabilities while maintaining compatibility, you should update to the latest patch release of Python 3.11. I suggest using python:3.11.9-slim-bookworm, which is the latest security patch for the 3.11 series.

FROM python:3.11.9-slim-bookworm

@cubic-dev-ai cubic-dev-ai Bot Dec 7, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1: The final stage now runs on Python 3.14 even though the project declares support only for Python <3.12; installing dependencies or running the app under this image will violate the declared interpreter constraint and break the build.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At Dockerfile, line 10:

<comment>The final stage now runs on Python 3.14 even though the project declares support only for Python &lt;3.12; installing dependencies or running the app under this image will violate the declared interpreter constraint and break the build.</comment>

<file context>
@@ -7,7 +7,7 @@ COPY ./pyproject.toml /tmp/pyproject.toml
 RUN poetry export -f requirements.txt --output requirements.txt --without-hashes
 
-FROM python:3.11-slim-bookworm
+FROM python:3.14.1-slim-bookworm
 WORKDIR /app
 COPY --from=requirements-stage /tmp/requirements.txt /app/requirements.txt
</file context>
Suggested change
FROM python:3.14.1-slim-bookworm
FROM python:3.11-slim-bookworm
Fix with Cubic

WORKDIR /app
COPY --from=requirements-stage /tmp/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
Expand Down