Image with compiled v8_monolith and d8.
1.6K
I'll skip a pure js usage of this image, it's described in original repo: https://github.com/andreburgaud/docker-v8
Sample usage in dockerfile, assuming you have C++ app in cxx dir in same root as Dockerfile.
FROM dervan/embedded-v8:latest
COPY ./cxx /app
WORKDIR /app
RUN mkdir -p build && cd build && cmake .. && make
ENTRYPOINT /app/build/run_app
Inside a container headers are placed in /v8/include dir and obj files in /v8/out.gn/x64.release.sample/obj. For a complete example of an application see ./examples/app/. You can build it with:
cd ./examples/app
docker build -t example-v8-app -f Dockerfile .
docker run -i example-v8-app <<< "() => Math.random()"
$ git clone https://github.com/dervan/docker-embedded-v8.git
$ cd docker-embedded-v8
$ docker build -t embedded-v8 .
Note: the compilation may take some time depending on your hardware. For example it takes about 30 minutes on a 3.5GHz four core iMac with 24GB of RAM.
See the license file
Content type
Image
Digest
Size
373.9 MB
Last updated
almost 6 years ago
docker pull dervan/embedded-v8