simple spindle dockerfile
spindle.dockerfile edited
21 lines 579 B view raw
1from golang:1.24-alpine as builder 2env CGO_ENABLED=1 3 4arg TAG='v1.10.0-alpha' 5 6workdir /app 7run apk add git gcc musl-dev 8run git clone -b ${TAG} https://tangled.org/@tangled.org/core . 9run go build -o /usr/bin/spindle -ldflags '-s -w -extldflags "-static"' ./cmd/spindle 10 11from alpine:edge 12expose 6555 13 14run apk add --update docker openrc git curl bash docker 15run rc-update add docker boot 16copy --from=builder /usr/bin/spindle /usr/bin 17 18healthcheck --interval=60s --timeout=30s --start-period=5s --retries=3 \ 19 cmd curl -f http://localhost:6555 || exit 1 20 21entrypoint ["spindle"]