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 --update docker openrc git curl bash docker run rc-update add docker boot 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"]