2022-04-18 13:19:48 +09:00
|
|
|
FROM node:14-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-07-31 17:49:12 +09:00
|
|
|
RUN apk add --update --no-cache bash wget cmake musl-dev clang llvm build-base python3 && \
|
2021-07-22 00:46:45 +09:00
|
|
|
sed -i -e 's/v[[:digit:]]\..*\//edge\//g' /etc/apk/repositories && \
|
2022-06-14 15:35:22 +09:00
|
|
|
apk add --update --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing \
|
2021-07-22 00:46:45 +09:00
|
|
|
rustup \
|
|
|
|
git \
|
|
|
|
gn \
|
|
|
|
tar \
|
2022-04-18 13:19:48 +09:00
|
|
|
ninja
|
2021-07-22 00:46:45 +09:00
|
|
|
|
|
|
|
RUN rustup-init -y && \
|
2022-06-14 15:35:22 +09:00
|
|
|
yarn global add pnpm lerna && \
|
2021-07-22 00:46:45 +09:00
|
|
|
rustup target add aarch64-unknown-linux-musl && \
|
2022-08-09 14:17:52 +09:00
|
|
|
wget https://github.com/napi-rs/napi-rs/releases/download/linux-musl-cross%4010/aarch64-linux-musl-cross.tgz && \
|
2021-07-22 00:46:45 +09:00
|
|
|
tar -xvf aarch64-linux-musl-cross.tgz && \
|
|
|
|
rm aarch64-linux-musl-cross.tgz
|