From 68948ff43c7063127a9b0ae3d3542187c18af53a Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Thu, 26 Feb 2026 01:47:43 +0100 Subject: [PATCH 1/2] Replace stale base Docker image with python:3.11 directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The deploy Dockerfile inherited from policyengine/policyengine-api:latest on Docker Hub, which was last pushed in July 2024 and uses Python 3.10. Since setup.py now requires >=3.11, deploys fail. Rather than rebuilding the base image, this removes the indirection entirely — the base image only pre-installed heavy deps as a cache layer, but since version pins change frequently the cache provided minimal benefit. Co-Authored-By: Claude Opus 4.6 --- gcp/policyengine_api/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcp/policyengine_api/Dockerfile b/gcp/policyengine_api/Dockerfile index e85d3fb15..9b8d4e174 100644 --- a/gcp/policyengine_api/Dockerfile +++ b/gcp/policyengine_api/Dockerfile @@ -1,4 +1,6 @@ -FROM policyengine/policyengine-api:latest +FROM python:3.11 + +RUN apt-get update && apt-get install -y build-essential redis-server && rm -rf /var/lib/apt/lists/* ENV GOOGLE_APPLICATION_CREDENTIALS .gac.json ENV POLICYENGINE_DB_PASSWORD .dbpw From 289b9bd64dfdc5059667c5a5b3c1d9786bb2967f Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Thu, 26 Feb 2026 01:56:40 +0100 Subject: [PATCH 2/2] Add changelog entry for Dockerfile fix Co-Authored-By: Claude Opus 4.6 --- changelog_entry.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29bb..9e655ff6c 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: patch + changes: + fixed: + - Fixed deploy Dockerfile by replacing stale base Docker image (Python 3.10) with python:3.11 directly.