forked from realm/realm-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debian-multiarch-arm.Dockerfile
38 lines (34 loc) · 1.09 KB
/
debian-multiarch-arm.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
37
38
FROM debian:11
RUN dpkg --add-architecture armhf && apt-get update
RUN dpkg --add-architecture arm64 && apt-get update
RUN apt-get install -y \
build-essential \
curl \
crossbuild-essential-armhf \
crossbuild-essential-arm64 \
git \
libprocps-dev:armhf \
libprocps-dev:arm64 \
libssl-dev:armhf \
libssl-dev:arm64 \
libz-dev:armhf \
libz-dev:arm64 \
libasio-dev \
ninja-build \
ninja-build \
npm \
ccache \
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 16 \
&& chmod a+rwX -R $NVM_DIR
# Ensure a new enough version of CMake is available.
RUN mkdir -p /home/jenkins/cmake && \
cd /home/jenkins/cmake && \
curl -O -J https://cmake.org/files/v3.23/cmake-3.23.2-linux-x86_64.tar.gz &&\
tar zxf cmake-3.23.2-linux-x86_64.tar.gz
ENV PATH "/home/jenkins/cmake/cmake-3.23.2-linux-x86_64/bin:$PATH"