Created
November 17, 2021 21:52
-
-
Save nothub/08c252f8a8f9de908e0ac77778196d0b to your computer and use it in GitHub Desktop.
zig container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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