forked from shufo/docker-v8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (22 loc) · 1.27 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM phusion/baseimage:latest
MAINTAINER Kevin Read <[email protected]>
# install dependencies
RUN apt-get update && apt-get --allow-unauthenticated -y install git subversion make g++ python curl chrpath libc6-dev-i386 g++-multilib lbzip2 unzip bzip2 xz-utils pkg-config libglib2.0-dev libxml2-dev && 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
# NDK 19
#RUN cd /usr/local/bin && curl -O "https://dl.google.com/android/repository/android-ndk-r19-linux-x86_64.zip" && unzip android-ndk-r19-linux-x86_64.zip && rm android-ndk-r19-linux-x86_64.zip
#ENV NDK_HOME /usr/local/bin/android-ndk-r19
# Fetch v8 and setup gclient
RUN cd /usr/local/src && fetch v8 && \
cd /usr/local/src/v8 && echo "target_os = ['android']" >> ../.gclient && mkdir out.gn
# Update to selected v8 version
RUN cd /usr/local/src/v8 && git checkout 7.2.502.24 && gclient sync
ADD build-v8.sh /usr/local/bin
RUN mkdir -p /output
VOLUME ["/output"]
# compile v8 for all supported architectures
ENTRYPOINT ["/usr/local/bin/build-v8.sh"]
# x86.release x86 x86-4.9 i686-linux-android
# CMD /usr/local/bin/build-v8.sh x64.release x64 x86_64-4.9 x86_64-linux-android