How is GN compiled for musl?
hgl opened this issue · 3 comments
In alpine-libv8, gn is downloaded from dropbox. Is it possible to build it directly in Dockerfile? Or could you share the script that built it?
Thanks.
Sorry for the delay.
How is GN compiled for musl?
It's a long, boring story. Ideally, gn
and v8
should be a Alpine package.
Is it possible to build it directly in Dockerfile? Or could you share the script that built it?
Yes, but then Dockerfile will look a bit verbose. You can see an example here (this includes patches).
Thanks for the heads up. It's indeed quite challenging. Appreciate the work you did on that.
I haven't looked too deeply into how nodejs is built on alpine, but I wonder if that could be leveraged to build libv8 for musl? After all, it contains v8.
It seems that they still use GYP to build V8.
Node.js already built in Docker containers, it just downloaded.