napi-rs/alpine.Dockerfile

12 lines
314 B
Text
Raw Normal View History

2021-03-19 12:53:48 +09:00
FROM node:lts-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