News for hackers. Stuff that matters.
Re:Cache is King: A guide for Docker layer caching in GitHub... by candiddevmike on Sunday April 07, 2024 @07:34AM (#39960089)
Additionally, docker build refuses to cause any side effects to the host system. This makes any kind of caching difficult by design. IMO, if possible, consider doing your build outside of docker and just copying it into a scratch container...
Re:Cache is King: A guide for Docker layer caching in GitHub... by cpuguy83 on Sunday April 07, 2024 @11:10AM (#39961273)
I'm not sure what you mean here. "RUN --mount type=cache,dest=/foo" is exactly for keeping a persistent cache on the host.