This Dockerfile builds Google's V8 library and tools on alpine. This project is meant to be used in other multistage Dockerfiles to copy the V8 library and include files over. At least that is what I am using it for.
Include this image in your multistage Dockerfile and copy the V8 lib and includes over. E.g.
FROM rqelibari/alpine-v8:latest as v8
FROM alpine:3.8
...
COPY --from=v8 /root/v8/include /usr/include
COPY --from=v8 /root/v8/lib /usr/lib
...
I am not the author of this Dockerfile. I found this script on a gist of @tylerchr while I was searching for a v8 lib for an alpine image in another project of mine. A huge thanks to him for sharing the results of his efforts.