Re:Alpine makes Python Docker builds slower, and images larger
by pid_0 on Wednesday January 29, 2020 @10:46PM
(#22188677)
Not in docker. The entire point of docker is isolation so when you use something like python3.7-slim, its fine to use the system python. Thats the whole point of using the image.
Now you still want to run and install pip packages as a non-root user of course, but you don't need a virtualenv in docker.
Now you still want to run and install pip packages as a non-root user of course, but you don't need a virtualenv in docker.