mirror of
https://github.com/nine-lives-later/zzmq.git
synced 2024-09-29 04:48:46 +08:00
22 lines
556 B
Docker
22 lines
556 B
Docker
FROM alpine:3.19 as builder
|
|
|
|
# install Zig 0.12 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 apk add --no-cache zig@edge-community~=0.12.0
|
|
|
|
# install dependencies
|
|
RUN apk add --no-cache zeromq-dev clang bash
|
|
|
|
COPY . /build/
|
|
|
|
WORKDIR /build
|
|
|
|
RUN ./build_all_examples.sh
|
|
|
|
RUN touch /var/touched # dummy build output
|
|
|
|
# empty result image
|
|
FROM scratch
|
|
|
|
COPY --from=builder /var/touched /tmp/touched
|