File tree 1 file changed +3
-24
lines changed
1 file changed +3
-24
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.10-alpine as builder
2
-
3
- RUN apk update && apk add sqlite build-base git mercurial
4
- WORKDIR /go/src/github.com/operator-framework/operator-registry
5
-
6
- COPY vendor vendor
7
- COPY cmd cmd
8
- COPY pkg pkg
9
- COPY Makefile Makefile
10
- RUN make static
11
-
12
- FROM golang:1.10-alpine as probe-builder
13
-
14
- RUN apk update && apk add build-base git
15
- ENV ORG github.com/grpc-ecosystem
16
- ENV PROJECT $ORG/grpc_health_probe
17
- WORKDIR /go/src/$PROJECT
18
-
19
- COPY --from=builder /go/src/github.com/operator-framework/operator-registry/vendor/$ORG/grpc-health-probe .
20
- COPY --from=builder /go/src/github.com/operator-framework/operator-registry/vendor .
21
- RUN CGO_ENABLED=0 go install -a -tags netgo -ldflags "-w"
22
-
1
+ FROM quay.io/operator-framework/upstream-registry-builder:v1.1.0 as builder
23
2
24
3
FROM scratch
25
- COPY --from=builder /go/src/github.com/operator-framework/operator-registry /bin/configmap-server /bin/configmap-server
26
- COPY --from=probe- builder /go /bin/grpc_health_probe /bin/grpc_health_probe
4
+ COPY --from=builder /build /bin/configmap-server /bin/configmap-server
5
+ COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe
27
6
EXPOSE 50051
28
7
ENTRYPOINT ["/bin/configmap-server" ]
You can’t perform that action at this time.
0 commit comments