diff --git a/Dockerfile b/Dockerfile index 2af4d59..30feaf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,7 @@ -FROM alpine:3.21 AS builder -RUN apk add --no-cache curl xz -WORKDIR /zig -RUN curl -fsSL https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz | tar xJ --strip-components=1 +FROM kassany/alpine-ziglang:0.15.1 AS builder WORKDIR /app COPY . . -RUN /zig/zig build -Doptimize=ReleaseSafe +RUN zig build -Doptimize=ReleaseSafe FROM alpine:3.21 RUN apk add --no-cache ffmpeg curl ca-certificates diff --git a/build.zig.zon b/build.zig.zon index 778dd4a..a50da30 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -25,7 +25,7 @@ .fingerprint = 0x4f84e6a7e054cdf3, // Changing this has security and trust implications. // Tracks the earliest Zig version that the package considers to be a // supported use case. - .minimum_zig_version = "0.15.2", + .minimum_zig_version = "0.15.1", // This field is optional. // Each dependency must either provide a `url` and `hash`, or a `path`. // `zig build --fetch` can be used to fetch all dependencies of a package, recursively.