Minimize the number of layers. Prior to Docker 17.05, and even more, prior to Docker 1.10, it was important to minimize the number of layers in your image.C In Docker 1.10 and higher, only RUN, COPY, and ADD instructions create layers. References: https://docs.docker.com/v17.09/engine/userguide/eng-image/dockerfile_best-practices