It's way faster to cross-compile from the #Debian Rust image instead.
Just cut down from whopping 55 minutes to only 4 minutes to build the Docker image of my project, by switching back from the Alpine image to cross-compiling from Debian.
@JoYo sorry, didn't see your reply. Actually there are zero volume or directory mounts. The whole build is done as multi-stage docker build, so it's copying in the local files once automatically, builds everything and copies it into the final image in the end.
Nothing really fancy happening there. My guess is LLVM is maybe really slow on musl.
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!