-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
20 lines (17 loc) · 898 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM phusion/baseimage:latest
MAINTAINER shufo <[email protected]>
# install dependencies
RUN apt-get update
RUN apt-get -y install git subversion make g++ python curl chrpath && apt-get clean
# depot tools
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /usr/local/depot_tools
ENV PATH $PATH:/usr/local/depot_tools
# install v8
RUN cd /usr/local/src && fetch v8 && \
cd /usr/local/src/v8 && make native library=shared snapshot=off -j4 && \
mkdir -p /usr/local/lib && \
cp /usr/local/src/v8/out/native/lib.target/lib*.so /usr/local/lib && \
echo "create /usr/local/lib/libv8_libplatform.a\naddlib /usr/local/src/v8/out/native/obj.target/tools/gyp/libv8_libplatform.a\nsave\nend" | ar -M && \
cp -R /usr/local/src/v8/include /usr/local && \
chrpath -r '$ORIGIN' /usr/local/lib/libv8.so && \
rm -fR /usr/local/src/v8