napi-rs/alpine.Dockerfile

12 lines
313 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" \
2020-11-28 01:25:44 +09:00
PATH="/usr/local/cargo/bin/rustup:/root/.cargo/bin:$PATH" \
2020-11-26 15:30:19 +09:00
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