DEV Community

Discussion on: Stop using virtualenv, pyenv, nvm, goenv and Use Docker images

Collapse
 
appsecmonkey profile image
Teo Selenius

I would definitely add security to the benefits of using Docker vs. virtualenvs.

PyPI repositories are a wild west and you could end up running all sorts of crap on your host OS if you don't contain it.

Of course you have to audit your dependencies nevertheless because eventually the code will be deployed somewhere. But still, it at least makes me sleep my nights better.

Collapse
 
javidjms profile image
Javid Mougamadou

I totally agree with you.

There is the security layer.

And I would also add the famous quote of : "it doesn't work on my machine".

Now sharing images will help to build app on several similar environment (local, development, staging, production) and look like the same environement (almost)