Skip to content

Instantly share code, notes, and snippets.

@nothub
Created November 17, 2021 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nothub/08c252f8a8f9de908e0ac77778196d0b to your computer and use it in GitHub Desktop.
Save nothub/08c252f8a8f9de908e0ac77778196d0b to your computer and use it in GitHub Desktop.
zig container
FROM alpine:3 as builder
RUN apk update && apk add --no-cache tar xz
ARG ZIG_URL=https://ziglang.org/download/0.8.1/zig-linux-x86_64-0.8.1.tar.xz
ADD ${ZIG_URL} /tmp/zig.tar.xz
RUN tar xvf /tmp/zig.tar.xz --directory=/opt/
RUN mv /opt/zig* /opt/zig
FROM alpine:3
COPY --from=builder /opt/zig/ /opt/zig/
ENV PATH "$PATH:/opt/zig"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment