AlexMasterov / dockerfiles

:whale: Common Dockerfiles, used for development
56 stars 18 forks source link

How is GN compiled for musl? #5

Closed hgl closed 7 years ago

hgl commented 7 years ago

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.

AlexMasterov commented 7 years ago

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

hgl commented 7 years ago

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.

AlexMasterov commented 7 years ago

It seems that they still use GYP to build V8.

Node.js already built in Docker containers, it just downloaded.