[Enhancement] Improve docker image build times #153
Labels
docker
Tag if its related to docker
enhancement
New feature or request
github
Tag if its related to github
Cache odin compilation with
cargo chef
I'm sure you'be noticed, but currently there is a full clean compile each time the
odin
image is built.cargo chef
helps fix this issue by doing some magic behind the scenes to enable docker to cache the dependencies and all that. I've personally been using it already locally to help with build times when testing. This is the custom dockerfile I've been using for odin:This is basically a barely modified version of the example in
cargo chef
's README.Cache the build info with github actions
Now the next step would be to cache the files so that they can actually be used to speed up CI. It looks like this action can help with that, but I honestly haven't done any docker image building in CI before so there's possibly better.
The text was updated successfully, but these errors were encountered: