Which instruction in a Dockerfile is best suited for installing packages to minimize image size?
This cleans the apt cache, reducing the layer size.
Why this answer
Combining the update and install commands with 'rm -rf /var/lib/apt/lists/*' in a single RUN command prevents layer bloat.