atproto relay implementation in zig zlay.waow.tech
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: install zig 0.15.2 in Dockerfile (alpine ships 0.13)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

zzstoatzz 1f658364 e8af08f2

+5 -3
+5 -3
Dockerfile
··· 1 1 FROM alpine:3.21 AS builder 2 - RUN apk add --no-cache zig sqlite-dev 2 + RUN apk add --no-cache curl sqlite-dev xz musl-dev 3 + RUN curl -L https://ziglang.org/download/0.15.2/zig-linux-x86_64-0.15.2.tar.xz | tar -xJ -C /usr/local 4 + ENV PATH="/usr/local/zig-linux-x86_64-0.15.2:${PATH}" 3 5 WORKDIR /src 4 6 COPY . . 5 7 RUN zig build -Doptimize=ReleaseSafe 6 8 7 9 FROM alpine:3.21 8 10 RUN apk add --no-cache sqlite-libs ca-certificates 9 - COPY --from=builder /src/zig-out/bin/relay /usr/local/bin/relay 11 + COPY --from=builder /src/zig-out/bin/zlay /usr/local/bin/zlay 10 12 RUN mkdir -p /data/events 11 13 ENV RELAY_DATA_DIR=/data/events 12 14 ENV RELAY_DB_PATH=/data/relay.sqlite 13 15 EXPOSE 3000 3001 14 - ENTRYPOINT ["/usr/local/bin/relay"] 16 + ENTRYPOINT ["/usr/local/bin/zlay"]