Skip to content

Commit fab0462

Browse files
committedMar 18, 2019
update upstream configmap-registry image to use the builder image
1 parent c2a1be8 commit fab0462

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed
 

‎configmap-registry.Dockerfile

+3-24
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
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
232

243
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
276
EXPOSE 50051
287
ENTRYPOINT ["/bin/configmap-server"]

0 commit comments

Comments
 (0)