Docker Image Size - How to Keep It Small?
https://phoenixnap.com/kb/docker-image-size19.02.2020 · Avoid Adding Unnecessary Layers to Reduce Docker Image Size A Docker image takes up more space with every layer you add to it. Therefore, the more layers you have, the more space the image requires. Each RUN instruction in a Dockerfile adds a new layer to your image. That is why you should try to do file manipulation inside a single RUN command.