forked from realm/realm-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
armhf.Dockerfile
36 lines (31 loc) · 944 Bytes
/
armhf.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
32
33
34
35
36
FROM debian:10
RUN dpkg --add-architecture armhf && apt-get update
RUN apt-get install -y \
build-essential \
curl \
crossbuild-essential-armhf \
git \
libprocps-dev:armhf \
libssl-dev:armhf \
libz-dev:armhf \
libasio-dev \
ninja-build \
nodejs \
libnode-dev:armhf \
npm \
qemu-user
ENV NPM_CONFIG_UNSAFE_PERM true
ENV NVM_DIR /tmp/.nvm
RUN mkdir -p $NVM_DIR \
&& curl -s https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install 10 \
&& nvm install 12 \
&& nvm install 13 \
&& nvm install 14 \
&& chmod a+rwX -R $NVM_DIR
# Ensure a new enough version of CMake is available.
RUN cd /opt \
&& curl -O -J https://cmake.org/files/v3.15/cmake-3.15.2-Linux-x86_64.tar.gz \
&& tar zxf cmake-3.15.2-Linux-x86_64.tar.gz
ENV PATH "/opt/cmake-3.15.2-Linux-x86_64/bin:$PATH"