forked from sjitech/build-nodejs-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (15 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
18 lines (15 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#https://github.com/sjitech/android-gcc-toolchain/blob/master/Dockerfile
FROM osexp2000/android-gcc-toolchain
ENTRYPOINT []
CMD ["/bin/bash"]
ENV PATH=$PATH:/home/devuser/build-nodejs-for-android
RUN sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
gcc g++ gcc-multilib g++-multilib \
&& \
git clone https://github.com/sjitech/build-nodejs-for-android -b master --single-branch && \
git clone https://github.com/nodejs/node && \
cd node && \
( build-nodejs-for-android v8.0.0 --verbose --compress >/dev/null; : ) && \
echo "Removing infrequent toolchains" && \
for ARCH in arm64 x86 x64 mips; do android-gcc-toolchain $ARCH bash -c 'rm -fr "${BIN%/*}"'; done && \
echo "Done"