I am trying to set up a small first time app in go using Docker. I want to use the cli tools for go-lang migrate. However I receive the following error:
package github.com/golang-migrate/migrate/v4/internal/cli: cannot find package "github.com/golang-migrate/migrate/v4/internal/cli" in any of: /usr/local/go/src/github.com/golang-migrate/migrate/v4/internal/cli (from $GOROOT) /go/src/github.com/golang-migrate/migrate/v4/internal/cli (from $GOPATH)
The command works fine outside of docker. I'm confused about the set up of my Dockerfile, my GOPATH appears to be fine as well.
I have a Dockerfile with the following lines:
RUN apk --update add alpine-sdk
WORKDIR $GOPATH/src/github.com/go-projects/docker-test/
RUN echo $GOPATH
RUN go get -u -d github.com/golang-migrate/migrate/cli github.com/lib/pq```