github.com/dean7474/operator-registry@v1.21.1-0.20220418203638-d4717f98c2e5/registry.Dockerfile (about) 1 FROM golang:1.17-alpine as builder 2 3 RUN apk update && apk add sqlite build-base git mercurial bash 4 WORKDIR /build 5 6 COPY . . 7 RUN make static 8 RUN GRPC_HEALTH_PROBE_VERSION=v0.3.2 && \ 9 wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-$(go env GOARCH) && \ 10 chmod +x /bin/grpc_health_probe 11 12 FROM scratch 13 COPY ["nsswitch.conf", "/etc/nsswitch.conf"] 14 COPY --from=builder /build/bin/registry-server /registry-server 15 COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe 16 EXPOSE 50051 17 ENTRYPOINT ["/registry-server"] 18 CMD ["--database", "/bundles.db"]