Deleting Files in a Later Layer
A Dockerfile downloads a 300 MB archive in one RUN, extracts it, and deletes the archive in the next RUN. How big is the image compared to deleting it in the same RUN?
RUN
Choose one answer
The build fails, because a layer can't delete files created by another layer.
About 300 MB bigger: the archive stays in the earlier layer, only hidden.
Smaller, because the second layer compresses the deletion.
The same: Docker removes deleted files from all earlier layers when building.