Build the image in two stages on Python 3.13 #147
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
CrowderSoup/vTodo!147
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/dockerfile-py313"
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?
vTodo task #688.
Dockerfileis now a two-stagepython:3.13.16-slim-bookwormbuild like vJournal/vPages/vHub:uv sync --locked --no-devwithUV_COMPILE_BYTECODE=1in the build stage, and the runtime stage gets only/app. There's nogccorlibpq-devin it;psycopg[binary]brings its own libpq. vTodo was already on psycopg 3, so the only dependency change is Python.CMDrunspython manage.py migrateanduvicornfrom the venv onPATH, with nouv run. The worker role'scmdis now plaincelery …because uv isn't in the runtime image. #686 removes that role anyway..python-version,requires-python,uv.lock, README..dockerignorestops a localdocker build .from copying the host.venvover the built one. Kamal builds from a clean clone.Checked locally
pytest: 964 passed on 3.13.15, using SQLite like CI.makemigrations --checkreports no changes.gcc. Runs asapp.psycopg.pq.__impl__ == "binary"./up/200 took about 5.8 s, including a migrate on an empty DB. Hashed static files and/login/return 200.The Kamal deploy boot time on the droplet can only be checked once this deploys.
🤖 Generated with Claude Code
Pull request closed