Am i missing something or we are talking about a feature that's been around for 2 years now? On my side, i've been using this kind of builds for NET Core for quite that time. I think i'm really missing something...
Depending on how complex or time consuming some of these intermediate stages can be, it can be helpful to explicitly cache from them during the build process [0].<p>If you opt-in to using the experimental BuildKit support that Docker has, you can also do some neat tricks like potentially skipping unused layers [1], as well as building layers in parallel based on their dependency hierarchy [2].<p>[0] <a href="https://github.com/jkachmar/alpine-haskell-stack/blob/master/Makefile#L54:L58" rel="nofollow">https://github.com/jkachmar/alpine-haskell-stack/blob/master...</a><p>[1] <a href="https://github.com/docker/cli/issues/1134" rel="nofollow">https://github.com/docker/cli/issues/1134</a><p>[2] <a href="https://github.com/moby/moby/pull/37151" rel="nofollow">https://github.com/moby/moby/pull/37151</a>