The interesting thing about virtualenv is that it allows a flexible NPM-like, in-project package management for Docker. Once the code is ready for production images, install them globally within the production image. Virtualenv is installed by default in our malkab/python Docker image.
Steps:
- creating the virtualenv:
virtualenv libpyexample