github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/Dockerfile.release (about) 1 # vim: syntax=dockerfile 2 ARG BASE=cgr.dev/chainguard/static:latest 3 4 FROM golang:1.22.3-alpine3.18 AS health-probe-builder 5 WORKDIR /go/src/app 6 RUN apk update && apk add --no-cache git 7 RUN git clone https://github.com/grpc-ecosystem/grpc-health-probe.git 8 WORKDIR /go/src/app/grpc-health-probe 9 RUN git checkout bea3bb2419f2d0f0cd4a97b8190e8fafb3e48dda 10 RUN CGO_ENABLED=0 go install -a -tags netgo -ldflags=-w 11 12 FROM $BASE 13 14 COPY --from=health-probe-builder /go/bin/grpc-health-probe /usr/local/bin/grpc_health_probe 15 COPY spicedb /usr/local/bin/spicedb 16 ENV PATH="$PATH:/usr/local/bin" 17 EXPOSE 50051 18 ENTRYPOINT ["spicedb"]