Combining multiple apt-get commands in one RUN statement avoids the creation of multiple intermediate images, which helps keep the image size smaller and the build process more efficient. Docker creates a new layer for each RUN instruction, so combining commands reduces the number of layers. References: Docker Documentation - Best Practices for Writing Dockerfiles