Build multiarch docker images for release: amd, s390x, arm (#251)

This commit is contained in:
Namrata Bhave
2021-09-23 17:25:01 +05:30
committed by GitHub
parent 127194b205
commit 2e9ba5024e
2 changed files with 10 additions and 7 deletions

View File

@@ -11,8 +11,6 @@ COPY cmd /tmp/fullstorydev/grpcurl/cmd
# and build a completely static binary (so we can use
# scratch as basis for the final image)
ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64
ENV GO111MODULE=on
RUN go build -o /grpcurl \
-ldflags "-w -extldflags \"-static\" -X \"main.version=$(cat VERSION)\"" \