grid-columns: 1 grid-gap: 32 v1: "Image v1: one RUN per command, 538 MB" { grid-columns: 1 grid-gap: 0 del: "apk del build-base: 274 kB\nhides the compiler, does not remove it" { width: 510 } rm: "rm of the archive: 8.19 kB\nhides the archive, does not remove it" { width: 510 } pip: "pip install: 5.42 MB" { width: 510 } dd: "archive creation: 21 MB\nthe archive stays here" { width: 510 } add: "apk add python3 ... build-base: 352 MB\nthe compiler stays here" { width: 510; class: accent } base: "Alpine: 9.08 MB" { width: 510 } } v2: "Image v2: cleanup in the same RUN, 114 MB" { grid-columns: 1 grid-gap: 0 tout: "apk add, archive, pip, rm and apk del: 74 MB\nno layer keeps what is deleted" { width: 510; class: accent } base: "Alpine: 9.08 MB" { width: 510 } }