An administrator needs to execute multiple commands in a single RUN instruction to minimize image layers. Which syntax is standard in a Containerfile?
Chaining with `&&` executes both commands within one RUN instruction, producing a single image layer and satisfying the layer-minimisation constraint. The shell only proceeds to `dnf install` if `dnf update` succeeds, so failures halt the build rather than silently continuing. This is standard Containerfile syntax.
Why this answer
Combining commands using shell operators like && within a single RUN instruction reduces the total number of layers.