Not really Alpine's problem that there aren't upstream wheels for your dependencies. I think you're being realistic with your suggestion but you're barking at the wrong tree.
Isn’t this also a problem of requiring the compiler toolchain at install time?
I think we will eventually reach consensus that package managers requiring a compiler is a misfeature.
I think I’d be just fine having two base images, one for runtime, and a superset image for Continuous Integration that layers the compiler toolchain on top.
But Node has this same behavior and it drives me nuts.
>Isn’t this also a problem of requiring the compiler toolchain at install time?
This isn't a new problem if you use docker. To address it you have to either use multistage builds or more traditionally you install the dev tools, build and install your artifacts, then remove your dev tools all in a single step. It's annoying, but it's a common pattern.
> I think we will eventually reach consensus that package managers requiring a compiler is a misfeature
What's your alternative solution? For simple native libraries there's always libffi, but things that need numerical processing will want to actually plug into the underlying value representation directly to not sacrifice speed.