· Layers use space and as the number of layer increases, the final image size also increase. This is because the system keeps all the changes between the various statements. The number of instructions and layers should be kept to a minimum as this ultimately affects build performance and time.
· We should try to consolidate instructions, we can compress multiple RUN commands together using the Bash && operator.