This is awesome.
Vlad's blog post at https://vladaionescu.com/introducing-earthly-build-automatio... is a shorter introduction.
Reminds me of SourceHut's CI infrastructure (that uses VMs, rather than containers, and IIRC doesn't natively multi-stage in the same way - but has a similar use profile)