napi-rs/alpine.Dockerfile
2020-11-28 00:25:44 +08:00

11 lines
313 B
Docker

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