napi-rs/alpine.Dockerfile

33 lines
831 B
Text
Raw Normal View History

2021-03-19 12:53:48 +09:00
FROM node:lts-alpine
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" \
CXX="clang++" \
GN_EXE=gn
2021-09-28 14:11:28 +09:00
RUN apk add --update --no-cache wget musl-dev && \
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 \
2021-10-30 18:43:46 +09:00
cmake \
llvm \
gn \
tar \
2021-09-30 16:10:04 +09:00
ninja && \
2021-11-01 00:09:05 +09:00
apk upgrade && \
npm install -g pnpm
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