Skip to content

Commit e3fa6c4

Browse files
varun1729ry
authored andcommitted
Add Dockerfile (ry#21)
1 parent 8aa233c commit e3fa6c4

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

Dockerfile.v8worker2

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM golang:latest
2+
LABEL Author="[email protected]"
3+
VOLUME /var/log/v8worker2
4+
RUN go get github.com/ry/v8worker2 || \
5+
cd $GOPATH/src/github.com/ry/v8worker2 \
6+
&& rm -rf v8 \
7+
&& git clone https://github.com/v8/v8.git \
8+
&& cd v8 \
9+
&& git checkout fe12316ec4b4a101923e395791ca55442e62f4cc \
10+
&& cd .. \
11+
&& rm -rf depot_tools \
12+
&& git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git \
13+
&& cd depot_tools \
14+
&& git checkout f16fdf3 \
15+
&& git submodule update --init --recursive
16+
RUN yes | apt-get update \
17+
&& yes | apt-get upgrade \
18+
&& apt-get install -y xz-utils bzip2 libglib2.0-dev libxml2-dev
19+
RUN cd $GOPATH/src/github.com/ry/v8worker2 \
20+
&& ./build.py
21+
RUN cd $GOPATH/src/github.com/ry/v8worker2 \
22+
&& go test

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ it. This is useful to avoid rebuilding V8 so much.
2929
## JavaScript API
3030

3131
The JavaScript interface is exposed thru a single global namespace `V8Worker2`.
32-
The interface has just three methods `V8worker2.print()`, `V8Worker2.send()`,
32+
The interface has just three methods `V8Worker2.print()`, `V8Worker2.send()`,
3333
and `V8Worker2.recv()`.
3434
See
3535
[v8worker2.d.ts](https://github.com/ry/v8worker2/blob/master/v8worker2.d.ts)

0 commit comments

Comments
 (0)