FROM golang:1.25-alpine3.22 AS build-env RUN apk add --no-cache build-base make git WORKDIR /dockerbuild RUN git clone --depth 1 https://github.com/bluesky-social/indigo.git . && \ git fetch --tags RUN GIT_VERSION=$(git describe --tags --long --always) && \ go build -tags timetzdata -o /tap ./cmd/tap FROM alpine:3.22 RUN apk add --no-cache --update dumb-init ca-certificates runit ENTRYPOINT ["dumb-init", "--"] RUN mkdir -p /data WORKDIR /data COPY --from=build-env /tap / ENV GODEBUG=netdns=go ENV TZ=Etc/UTC EXPOSE 2480 CMD ["/tap", "run"] LABEL org.opencontainers.image.source=https://github.com/bluesky-social/indigo LABEL org.opencontainers.image.description="AT Protocol Sync Utility (tap)" LABEL org.opencontainers.image.licenses=MIT