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

# ---- Build stage ----
FROM python:3.10-slim AS builder
FROM python:3.14.0rc1-slim AS builder
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

Using a release candidate (rc1) version of Python is highly discouraged for production environments. Release candidates are not stable and are intended for testing, so they may contain bugs or security issues. It's much safer to use the latest stable version. I recommend upgrading to a stable version like python:3.12-slim to get security updates while maintaining stability.

FROM python:3.12-slim AS builder

WORKDIR /app

# System deps for building wheels, psycopg2, etc.
Expand All @@ -12,7 +12,7 @@ COPY requirements-dev.txt ./
RUN pip install --upgrade pip && pip install -r requirements.txt

# ---- Production image ----
FROM python:3.10-slim
FROM python:3.14.0rc1-slim
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

As with the builder stage, using a release candidate (rc1) for the production image introduces significant stability and security risks. It's crucial to use a stable, supported Python version for production. I recommend using python:3.12-slim here as well.

FROM python:3.12-slim


ENV PYTHONUNBUFFERED=1
WORKDIR /app
Expand Down
Loading