lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

cache the cargo registry cache directories to speed up build times

Open khumps opened this issue 1 year ago • 1 comments

According to the cargo docs the local cargo package registry is safe to cache. Doing so massively speeds up docker recompile times because the docker build does not need to re-fetch any packages if the cargo manifest or lockfile hasn't changed (almost half the build time in local development).

khumps avatar Jun 22 '23 03:06 khumps

Try updating the docker image to 1.70 which fetches the package registry more efficiently. Then this shouldnt make much difference anymore.

Nutomic avatar Jun 22 '23 08:06 Nutomic