The Perfect Python Dockerfile - better performance and security
Those are nice and surprising insights, especially on the performance side.
I wonder however what's the point of using virtual envs in a docker machine ?
Virtual envs are necessary on your local machine to separe different projects with different requirements, but in the docker context your code should be fairly isolated.
More on reddit.comDocker and python
Look through the documentation and examples for making a Dockerfile: https://docs.docker.com/engine/reference/builder/
More on reddit.comDocker: Do you use it?
Docker is nice for validating my changes work in a production-like environment. However, given that we aren't yet deploying containers to production and PyCharm's support is somewhat limited, I continue to use virtualenv, SQLite, and Elasticsearch hosted on my machine for local development.
More on reddit.comI created a 40-minute tutorial that will explain everything you need to Containerize your Python applications using Docker!
Videos
» pip install docker-py
» pip install docker