Skip to content

Fix deploy: replace stale base Docker image with python:3.11#3298

Merged
anth-volk merged 2 commits intomasterfrom
fix-deploy-dockerfile-python-version
Feb 26, 2026
Merged

Fix deploy: replace stale base Docker image with python:3.11#3298
anth-volk merged 2 commits intomasterfrom
fix-deploy-dockerfile-python-version

Conversation

@anth-volk
Copy link
Collaborator

Summary

  • Replaces FROM policyengine/policyengine-api:latest with FROM python:3.11 in the deploy Dockerfile
  • Adds build-essential and redis-server system deps inline (previously provided by the base image)

The base image on Docker Hub was last pushed July 2024 and uses Python 3.10. Since setup.py now requires >=3.11, all deploys fail with:

ERROR: Package 'policyengine-api' requires a different Python: 3.10.14 not in '>=3.11'

The base image existed as a cache layer to pre-install heavy dependencies, but since version pins change frequently it provided minimal speedup and added maintenance burden.

Fixes #3297

Test plan

  • Deploy API v1 using make deploy and verify the build completes successfully

🤖 Generated with Claude Code

anth-volk and others added 2 commits February 26, 2026 01:47
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 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.07%. Comparing base (1e18234) to head (289b9bd).
⚠️ Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3298      +/-   ##
==========================================
+ Coverage   70.10%   72.07%   +1.97%     
==========================================
  Files          56       56              
  Lines        2398     2396       -2     
  Branches      419      419              
==========================================
+ Hits         1681     1727      +46     
+ Misses        641      591      -50     
- Partials       76       78       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@anth-volk anth-volk marked this pull request as ready for review February 26, 2026 01:16
@anth-volk anth-volk merged commit 09bd03a into master Feb 26, 2026
7 checks passed
@anth-volk anth-volk deleted the fix-deploy-dockerfile-python-version branch February 26, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy fails: base Docker image is stale and uses Python 3.10

1 participant