2021-03-19 12:53:48 +09:00
|
|
|
FROM node:lts-alpine
|
2020-06-10 19:55:40 +09:00
|
|
|
|
2021-07-22 00:46:45 +09:00
|
|
|
ENV PATH="/aarch64-linux-musl-cross/bin:/usr/local/cargo/bin/rustup:/root/.cargo/bin:$PATH" \
|
|
|
|
RUSTFLAGS="-C target-feature=-crt-static" \
|
2020-11-26 15:30:19 +09:00
|
|
|
CC="clang" \
|
2021-07-22 00:46:45 +09:00
|
|
|
CXX="clang++" \
|
|
|
|
GN_EXE=gn
|
2020-06-10 19:55:40 +09:00
|
|
|
|
2022-04-17 23:21:13 +09:00
|
|
|
RUN apk add --update --no-cache wget build-base musl-dev && \
|
2021-07-22 00:46:45 +09:00
|
|
|
sed -i -e 's/v[[:digit:]]\..*\//edge\//g' /etc/apk/repositories && \
|
|
|
|
apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
|
|
|
|
rustup \
|
|
|
|
bash \
|
|
|
|
python3 \
|
|
|
|
python2 \
|
|
|
|
git \
|
|
|
|
clang \
|
2021-10-30 18:43:46 +09:00
|
|
|
cmake \
|
2021-07-22 00:46:45 +09:00
|
|
|
llvm \
|
|
|
|
gn \
|
|
|
|
tar \
|
2021-09-30 16:10:04 +09:00
|
|
|
ninja && \
|
2022-01-18 17:48:29 +09:00
|
|
|
npm install -g pnpm lerna
|
2021-07-22 00:46:45 +09:00
|
|
|
|
|
|
|
RUN rustup-init -y && \
|
|
|
|
yarn global add pnpm && \
|
|
|
|
rustup target add aarch64-unknown-linux-musl && \
|
|
|
|
wget https://musl.cc/aarch64-linux-musl-cross.tgz && \
|
|
|
|
tar -xvf aarch64-linux-musl-cross.tgz && \
|
|
|
|
rm aarch64-linux-musl-cross.tgz
|