Docker builds images by creating a new layer for each instruction in the Dockerfile. For example, each RUN, COPY, or ADD command adds a layer. Minimizing layers means combining commands, especially RUN commands, into one line using && to chain them. This reduces the total number of layers, which makes the image smaller and the build faster. For instance, combining apt-get update and apt-get install in one RUN command creates one layer instead of two. COPY and RUN cannot be combined into one instruction, so they create separate layers. Cleaning temporary files or caches in the same RUN command helps reduce the final image size. The execution table shows how layers accumulate step by step and how combining commands affects the layer count.