Updates required for multi-architecture builds. (#1891)

Co-authored-by: Rahul Bhati <rjbhati009@gmail.com>
This commit is contained in:
Alistair Young
2021-02-03 23:03:04 +05:30
committed by GitHub
co-authored by Rahul Bhati
parent ef83d4314e
commit e0522cc20e
6 changed files with 73 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ ARG BUILDVERSION=unknown
ARG BUILDDATE=unknown
# E.g. BUILDDATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
RUN CGO_ENABLED=0 go build \
-o /go/bin/fetcher \
-gcflags=-trimpath=$GOPATH \
-asmflags=-trimpath=$GOPATH \