From 974f4c977aab9fcd1346dcf9cc016186e8f2d89b Mon Sep 17 00:00:00 2001 From: David Fischer Date: Wed, 1 Oct 2025 09:18:55 -0700 Subject: [PATCH] Upgrades to Python and Debian Debian Buster has exited LTS and the deploy was failing. While upgrading Python, Pillow and Postgres required some updates to continue building successfully. --- Dockerfile | 6 ++++-- requirements/common.txt | 2 +- requirements/deployment.txt | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 977abaa..dfddffc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -ARG PYTHON_VERSION=3.10-slim-buster +# https://www.debian.org/releases/stable/ +# https://hub.docker.com/_/python/ +ARG PYTHON_VERSION=3.13-slim-bookworm FROM python:${PYTHON_VERSION} @@ -20,7 +22,7 @@ RUN apt-get install -y --no-install-recommends \ make \ build-essential \ g++ \ - postgresql-client \ + postgresql-client libpq-dev \ git RUN mkdir -p /code diff --git a/requirements/common.txt b/requirements/common.txt index 6c16300..5a038e9 100644 --- a/requirements/common.txt +++ b/requirements/common.txt @@ -21,4 +21,4 @@ django-enforce-host==1.1.0 defusedxml==0.7.1 # Used for image field handling -pillow==10.3.0 +pillow==11.3.0 diff --git a/requirements/deployment.txt b/requirements/deployment.txt index c0a9324..cde990d 100644 --- a/requirements/deployment.txt +++ b/requirements/deployment.txt @@ -1,7 +1,8 @@ -r common.txt # Database server -psycopg2-binary==2.9.9 +# https://www.psycopg.org/docs/install.html#install-from-source +psycopg2==2.9.10 # Email django-anymail==10.3