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.13.4-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.

high

Upgrading the base image is a good practice for security. Ensure that all dependencies and application code are compatible with Python 3.13.

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.13.4-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.

high

Consistent use of the same base image version (3.13.4-slim) in both the build and production stages is important to avoid discrepancies. This ensures that the application behaves consistently across environments.


ENV PYTHONUNBUFFERED=1
WORKDIR /app
Expand Down
Loading