Hacker News new | past | comments | ask | show | jobs | submit login

Per the issue, both.



I recently moved to docker build pipeline for a project, and it’s redownloading all deps on each source file change, unlike the efficient on disk incremental compilation, because of how docker layer caching works, so my usage skyrocketed (and my build times went from seconds to minutes).


Since writing this, I have seen the trick - copy just the go.sum and go.mid files into an earlier layer, then get the deps, then copy all the other source code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: