This would be because Docker uses "vendored" dependencies, which are provided in the "vendor" directory.

I definitely agree that it would be cleaner to put the symlink below this line into buildpath instead of here, and that GOPATH would then be something like `/path/to/buildpath/go:/path/to/vendor`.