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
|
|
|
|
2021-09-28 14:11:28 +09:00
|
|
|
RUN apk add --update --no-cache wget 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 \
|
|
|
|
build-base \
|
|
|
|
clang \
|
|
|
|
llvm \
|
|
|
|
gn \
|
|
|
|
tar \
|
2021-09-28 14:11:28 +09:00
|
|
|
ninja \
|
|
|
|
apk upgrade
|
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
|