DEV Community

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

marounmaroun profile image
Maroun Maroun • Edited on

I don't like to have difference between my development setup and the production setup (containerized). I don't find it harmful to have a virtual env inside the container.

hseritt profile image
Harlin Seritt

Says it better than I could have. +1

ashraful profile image
Mohamad Ashraful Islam Author

Do you ship your container dev to stage, stage to prod. OR, clone the repo at production server and run docker command, like, docker-compose up

And thanks for your thought.

marounmaroun profile image
Maroun Maroun

We actually use K8s for dev, staging and production clusters. For development, we have containers that're orchestrated by docker-compose.

The flow is: Test things locally, once done, deploy to dev, then move to staging and finally deploy on production.