build: fix alpine zig image

This commit is contained in:
LongYinan 2023-03-12 19:23:25 +08:00
parent 1ff67418c7
commit 894f082429
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -2,7 +2,7 @@ FROM ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
ARG ZIG_VERSION=0.10.1
RUN apk add --update --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing xz && \
RUN apk add --update --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing xz xz-dev && \
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 && \