fix: change from go get to go install in Dockerfile

This commit is contained in:
zenix 2022-05-16 23:40:10 +09:00
parent dd06180892
commit fb4f0ab706

View File

@ -11,7 +11,7 @@ ENV GOPATH_ORIG=$GOPATH
ENV GOPATH=${GO_MOD_CACHE:+$WORKDIR/$GO_MOD_CACHE}
ENV GOPATH=${GOPATH:-$GOPATH_ORIG}
ENV CGO_ENABLED=1
RUN go get github.com/mattn/go-sqlite3
RUN go install github.com/mattn/go-sqlite3
ADD . .
RUN go build -o $GOPATH_ORIG/bin/bbgo ./cmd/bbgo