napi-rs/alpine.Dockerfile

12 lines
285 B
Text
Raw Normal View History

2020-11-26 15:30:19 +09:00
FROM node:10-alpine
2020-11-26 15:30:19 +09:00
ENV RUSTFLAGS="-C target-feature=-crt-static" \
PATH="/root/.cargo/bin:$PATH" \
CC="clang" \
CXX="clang++"
RUN sed -i -e 's/v[[:digit:]]\..*\//edge\//g' /etc/apk/repositories && \
apk update && \
2020-11-26 15:30:19 +09:00
apk add rustup musl-dev build-base && \
rustup-init -y