Oh my, supports compiling natively in (with files) for quite a while, but building your image on the Alpine version directly, is extremely slow.

It's way faster to cross-compile from the 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.

· · Web · 1 · 1 · 2

@dnaka91 weird, think it’s the directory mount slowing it down?

@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.

Sign in to participate in the conversation
Mastodon for Tech Folks

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!