Python Container Runtime

Use when a Python service is packaged or started in a container: a Dockerfile for a Python app built with uv (multi-stage, dependency layer before source, lockfile install, bytecode, non-root user, no dev dependencies, a host virtual environment leaking into the image, interpreter path matching between stages) and how the process starts (exec-form command so the termination signal reaches the app, dev server versus production server, one process per container versus worker processes, proxy headers).

techmefr Updated

File contents

techmefr/mentis commit 13a3b8d228

Frequently asked questions

npx get-skill add techmefr/python-container-runtime