github.com/dean7474/operator-registry@v1.21.1-0.20220418203638-d4717f98c2e5/upstream-opm-builder.Dockerfile (about) 1 ## 2 ## Deprecated: release/goreleaser.opm.Dockerfile is used in conjunction with 3 ## GoReleaser to build and push multi-arch images for opm 4 ## 5 6 FROM quay.io/operator-framework/golang:1.17-alpine AS builder 7 8 RUN apk update && apk add sqlite build-base git mercurial bash 9 WORKDIR /build 10 11 COPY . . 12 RUN make static 13 RUN GRPC_HEALTH_PROBE_VERSION=v0.3.2 && \ 14 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) && \ 15 chmod +x /bin/grpc_health_probe 16 17 FROM quay.io/operator-framework/alpine 18 RUN apk update && apk add ca-certificates 19 COPY ["nsswitch.conf", "/etc/nsswitch.conf"] 20 COPY --from=builder /build/bin/opm /bin/opm 21 COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe