Earthly solves this really well: https://earthly.dev
They rethink Dockerfiles with really good caching support.
They rethink Dockerfiles with really good caching support.
A possible exception is the "auto skip" feature for Earthly Cloud, since I do not know how that is implemented.
That can extend beyond just producing docker iamges as well. Under the covers the CACHE keyword is how lib/rust in Earthly makes building Rust artifacts in CI faster.