First install uv:
brew install uv
You can follow this doc:
For my projects, I suppose it would be:
uv init
uv add -r requirements.in -c requirements.txt
If it didn’t work:
uv add -r requirements.in
Then I change dockerfile using this tutorial: