Re:Docker and Python
by rwdim on Sunday December 27, 2020 @11:18AM
(#25551994)
while i agree this is overly complex given the simplicity of virtualenvs, there is something “pythonic” about encapsulating the environment in a container.
I would suggest using alpine containers with python for a ~40mB container, versus the ~900MB container created here to run a server.
For me, python containers are only used when I want to bundle things into services on swarm, and I use venvs for local development.
I would suggest using alpine containers with python for a ~40mB container, versus the ~900MB container created here to run a server.
For me, python containers are only used when I want to bundle things into services on swarm, and I use venvs for local development.