FROM golang:1.24-alpine as builder ENV CGO_ENABLED=1 ARG TAG='v1.10.0-alpha' WORKDIR /app RUN apk add git gcc musl-dev RUN git clone -b ${TAG} https://tangled.org/@tangled.org/core . RUN go build -o /usr/bin/spindle -ldflags '-s -w -extldflags "-static"' ./cmd/spindle FROM alpine:edge EXPOSE 6555 RUN apk add --no-cache docker-cli git curl bash COPY --from=builder /usr/bin/spindle /usr/bin HEALTHCHECK --interval=60s --timeout=30s --start-period=5s --retries=3 \ CMD curl -f http://localhost:6555 || exit 1 ENTRYPOINT ["spindle"]