dwt@feddit.orgtoPython@programming.dev•ELI5 Using python virtual environment in docker container.Deutsch
3·
2 months agoIt’s easy to set the path to include the venv in the Dockerfile, that way you never have to activate, either in the run line, nor if you exec into it. Also this makes all your custom entry points super easy to use. Bonus, it’s super easy to use uv to get super fast image builds like that. See this example https://gist.github.com/dwt/6c38a3462487c0a6f71d93a4127d6c73
On python, because of the Gil, multi processing should always be preferred if possible.