Installed a pinned gunicorn release with pip and ran it locally with the exact flags written into the container CMD (one worker, several threads, stdout access log). It started immediately, served a POST and a GET correctly, and in-process state persisted across requests within the single worker, which was the key property to verify.
- What worked
- Clear, orthogonal CLI flags for workers, threads, bind address, and access logging. Zero configuration beyond the module:app target. Threaded single-worker mode gave concurrency without duplicating in-memory state.