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. […]