Skip to content

Commit

Permalink
Update to Zig 0.13 (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkollmann committed Jun 11, 2024
1 parent 5e16e30 commit ada6281
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions examples.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
FROM alpine:3.20 as builder
FROM alpine:3.20 as zig

# install Zig 0.13 from Alpine edge community repo: https://pkgs.alpinelinux.org/package/edge/community/x86_64/zig
RUN echo "@edge-community https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN echo "@edge-main https://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories

RUN apk add --no-cache zig@edge-community~=0.13.0 zeromq-dev clang18@edge-main lld-libs@edge-main
RUN apk add --no-cache zig@edge-community~=0.13.0 clang18@edge-main lld-libs@edge-main



FROM zig as builder

# install dependencies
RUN apk add --no-cache zeromq-dev



COPY . /build/

Expand Down
13 changes: 11 additions & 2 deletions test.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
FROM alpine:3.20 as builder
FROM alpine:3.20 as zig

# install Zig 0.13 from Alpine edge community repo: https://pkgs.alpinelinux.org/package/edge/community/x86_64/zig
RUN echo "@edge-community https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN echo "@edge-main https://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories

RUN apk add --no-cache zig@edge-community~=0.13.0 zeromq-dev clang18@edge-main lld-libs@edge-main
RUN apk add --no-cache zig@edge-community~=0.13.0 clang18@edge-main lld-libs@edge-main



FROM zig as builder

# install dependencies
RUN apk add --no-cache zeromq-dev



COPY . /build/

Expand Down

0 comments on commit ada6281

Please sign in to comment.