In my previous entry I discussed how to create a docker image using a minimal Dockerfile. There are a few benefits to this method, the main one being is that you can eliminate a lot less baggage layers resulting from the Dockerfile build process. This is good because the resulting image is much smaller and you’ll have […]
Reducing Docker Intermediate Layers and Dockerfile Complexity
Originally some of my dockerfiles looked something like this.. FROM docker.psidox.com/base ADD large.zip . RUN apt-get update RUN apt-get install -y unzip .. RUN unzip large.zip … .. CMD [“/bin/bash”, “/bootstrap.sh”] The docker images built from these docker files would have a lot of unnecessary layers since each line in a dockerfile represents a single layer. […]