napi-rs/alpine.Dockerfile
2021-03-19 11:53:48 +08:00

11 lines
314 B
Docker

FROM node:lts-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