napi-rs/alpine-zig.Dockerfile

12 lines
541 B
Text
Raw Normal View History

2022-01-18 14:41:44 +09:00
FROM ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
2023-03-12 17:13:32 +09:00
ARG ZIG_VERSION=0.10.1
2022-01-18 14:41:44 +09:00
2023-03-12 20:23:25 +09:00
RUN apk add --update --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing xz xz-dev && \
2022-01-18 14:41:44 +09:00
rustup target add x86_64-unknown-linux-gnu && \
wget https://ziglang.org/download/${ZIG_VERSION}/zig-linux-x86_64-${ZIG_VERSION}.tar.xz && \
tar -xvf zig-linux-x86_64-${ZIG_VERSION}.tar.xz && \
mv zig-linux-x86_64-${ZIG_VERSION} /usr/local/zig && \
ln -sf /usr/local/zig/zig /usr/local/bin/zig && \
rm zig-linux-x86_64-${ZIG_VERSION}.tar.xz