Dockerfile: add GO111MODULE export
Maybe fixes this one: ---> Running in 3b964b007f22 + export 'GOGC=off' + export 'CGO_ENABLED=0' + export 'LDFLAGS=-X /config.Version=0.5.0-pre-39-ga168f09' + go build -v '-mod=vendor' -ldflags '-X /config.Version=0.5.0-pre-39-ga168f09' -o /go/bin/neo-go ./cli/main.go build command-line-arguments: cannot load github.com/go-redis/redis: open /neo-go/vendor/github.com/go-redis/redis: no such file or directory The command '/bin/sh -c set -x && export GOGC=off && export CGO_ENABLED=0 && export LDFLAGS="-X ${REPO}/config.Version=${VERSION}" && go build -v -mod=vendor -ldflags "${LDFLAGS}" -o /go/bin/neo-go ./cli/main.go' returned a non-zero code: 1 make: *** [Makefile:19: image] Error 1
This commit is contained in:
parent
a168f09ac4
commit
b8ad0125b6
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ ARG VERSION=dev
|
|||
# go build -mod=vendor
|
||||
RUN set -x \
|
||||
&& export GOGC=off \
|
||||
&& export GO111MODULE=on \
|
||||
&& export CGO_ENABLED=0 \
|
||||
&& export LDFLAGS="-X ${REPO}/config.Version=${VERSION}" \
|
||||
&& go build -v -mod=vendor -ldflags "${LDFLAGS}" -o /go/bin/neo-go ./cli/main.go
|
||||
|
|
Loading…
Reference in a new issue