Unofficial Docker images for the Zig programming language compiler.
Published to GitHub Container Registry at ghcr.io/mattrobenolt/zig.
- Debian (glibc):
ghcr.io/mattrobenolt/zig:0.15.2orghcr.io/mattrobenolt/zig:0.15.2-debian - Alpine (musl):
ghcr.io/mattrobenolt/zig:0.15.2-alpine
Both support linux/amd64 and linux/arm64.
FROM ghcr.io/mattrobenolt/zig:0.15.2 AS builder
WORKDIR /app
COPY . .
RUN zig build -Doptimize=ReleaseFast
FROM debian:bookworm-slim
COPY --from=builder /app/zig-out/bin/myapp /usr/local/bin/myapp
ENTRYPOINT ["myapp"]Images are built following Zig's documented best practices. All downloads are cryptographically verified using minisign against the Zig Software Foundation's public key.
MIT License. See LICENSE.