File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.13-alpine
1+ FROM golang:1.13-alpine as builder
22
33RUN apk update && apk add sqlite build-base git mercurial bash
44WORKDIR /build
@@ -12,8 +12,15 @@ RUN make static
1212RUN GRPC_HEALTH_PROBE_VERSION=v0.3.2 && \
1313 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) && \
1414 chmod +x /bin/grpc_health_probe
15- RUN cp /build/bin/opm /bin/opm && \
16- cp /build/bin/initializer /bin/initializer && \
17- cp /build/bin/appregistry-server /bin/appregistry-server && \
18- cp /build/bin/configmap-server /bin/configmap-server && \
19- cp /build/bin/registry-server /bin/registry-server
15+
16+ FROM alpine:3
17+
18+ COPY --from=builder [ \
19+ "/bin/grpc_health_probe" , \
20+ "/build/bin/opm" , \
21+ "/build/bin/initializer" , \
22+ "/build/bin/appregistry-server" , \
23+ "/build/bin/configmap-server" , \
24+ "/build/bin/registry-server" , \
25+ "/bin/" \
26+ ]
You can’t perform that action at this time.
0 commit comments