Forwarded from DevOps drawer
Multi-stage Docker builds for Python: virtualenv, –user, and other methods
https://pythonspeed.com/articles/multi-stage-docker-python/
https://pythonspeed.com/articles/multi-stage-docker-python/
Python⇒Speed
Multi-stage builds #2: Python specifics
Once you understand generic Docker multi-stage builds, here’s how to implement them for Python applications, with virtualenvs or user installs.