File tree 2 files changed +29
-0
lines changed
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ WORKDIR /registry
30
30
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/initializer /bin/initializer
31
31
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/registry-server /bin/registry-server
32
32
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/configmap-server /bin/configmap-server
33
+ COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/appregistry-server /bin/appregistry-server
33
34
COPY --from=builder /go/bin/grpc_health_probe /bin/grpc_health_probe
34
35
35
36
RUN chgrp -R 0 /registry && \
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
+
23
+
24
+ FROM scratch
25
+ COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/appregistry-server /bin/appregistry-server
26
+ COPY --from=probe-builder /go/bin/grpc_health_probe /bin/grpc_health_probe
27
+ EXPOSE 50051
28
+ ENTRYPOINT ["/bin/appregistry-server" ]
You can’t perform that action at this time.
0 commit comments