loading...

Discussion on: Do you use python virtualenv inside Docker at production?

Collapse
lietux profile image
Janne "Lietu" Enberg

It's great when doing a multi-stage build on Alpine Linux - install your build dependencies, build your dependencies to a .venv and then copy that from the build container to the actual runtime environment.

Helps both you stage your Dockerfiles correctly for optimal build times, and with the end results cleaner and not having to worry about leaving C compilers etc. lying around.

Collapse
lietux profile image
Janne "Lietu" Enberg

Automated pipelines ftw. Have push to master trigger tests + builds + deployment automatically.