Split the three largest packages into their own image layers #32
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp!32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/containerfile-layer-split"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The first amd64 build for the #10 gate deployment could not be pushed: the venv layer compresses to 97.3 MB and the Cloudflare-proxied registry refuses a layer upload over 100 MB. imap-mailmind-mcp hit the same wall and splits its venv into layers.
Change
Containerfileonly. In the builder stage the three largest packages (onnxruntime 67 MB, phonenumbers 46 MB, numpy with numpy.libs 70 MB uncompressed) move out of the venv; in the runtime stage they come back as threeCOPYlayers at their original paths. File contents and paths are unchanged.Verified
python -c "import onnxruntime, numpy, phonenumbers, peoplemind_mcp.server"in the built image: ok.tests/test_deploy.pystatic tests: 6 passed. The 4 compose integration tests were not rerun; the image filesystem is identical, only its layer boundaries moved.Part of dev/peoplemind-mcp#10 (the gate deployment on starbase-syd).
🤖 Generated with Claude Code