If you swap to a content-based object store for container images (like OSTree/Flatpak), you could potentially save a lot of disk space too because you'll no longer need to be careful about your Dockerfile layers.
If two OCI images share the same file, they'll be de-duplicated on disk and only be downloaded once.
If two OCI images share the same file, they'll be de-duplicated on disk and only be downloaded once.