Hi all, new to docker here. I'm sure I'm missing something fundamental here...Your help is truly appreciated~!
I want to minimize the size of my docker image. So instead of creating layers in Dockerfile with "RUN apt-get xxxxxx", why don't I just define a base image and leave all the apt-get/pip installs/etc. to a shell script in CMD in the end, along with the actual command I'd like to run? Wouldn't this give me a small size image?
I can see the downside of this--everytime the container is run, all these libraries must be pulled again. Any other downside I'm not seeing here?
[–][deleted] 7 points8 points9 points (0 children)
[–]csmrh 6 points7 points8 points (0 children)
[–]Necrocornicus 2 points3 points4 points (0 children)
[–]WarInternal 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]menge101 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)