github.com/dean7474/operator-registry@v1.21.1-0.20220418203638-d4717f98c2e5/upstream-builder.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 alpine:3
    13  
    14  COPY ["nsswitch.conf", "/etc/nsswitch.conf"]
    15  
    16  RUN chgrp -R 0 /etc && \
    17      chmod -R g+rwx /etc
    18  
    19  COPY --from=builder [ \
    20      "/bin/grpc_health_probe", \
    21      "/build/bin/opm", \
    22      "/build/bin/initializer", \
    23      "/build/bin/configmap-server", \
    24      "/build/bin/registry-server", \
    25      "/bin/" \
    26  ]