Hacker News new | ask | show | jobs
by davexunit 3908 days ago
But let's say a dependency is changed. Won't modifying that RUN directive invalidate the cache for everything after it, potentially rebuilding a ton of stuff anyway?
1 comments

Yup, that's the trade-off.
It's unfortunate that Docker uses an imperative model. A functional model would have much better cache utilization.