Ravi Sir's Cards › Chapter 52: Dockerfile Instructions Explained: FROM, RUN, CMD vs ENTRYPOINT, COPY vs ADD, Multi-Stage and BuildKit
Why combine apt-get update and install?
Why combine apt-get update and install? Separate layers cache an old update, so later installs fail or get stale packages. One RUN keeps them in sync and lets you clean lists.

Lesson: 52.2 RUN: shell form, exec form, layers and cache cleanup · मराठी card