You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So what changes should i make to my Dockerfile?
could not find project Gopkg.toml, use dep init to initiate a manifest
Guess like this;
COPY main.go $GOPATH/src/$IPATH/main.go
COPY go.sum $GOPATH/src/$IPATH/go.sum
WORKDIR $GOPATH/src/$IPATH
RUN set -x \
&& dep init \
&& dep ensure --vendor-only \
&& go test ./... && CGO_ENABLED=0 go install ./...
Should update module definition using more recent
go mod init
'sgo.mod
/go.sum
instead ofGopkg.lock
/Gopkg.toml
.The text was updated successfully, but these errors were encountered: