Setting up deployment of my miniproject, via docker - it is interesting to do so via MacDocker. here how I usually invoke it:

echo  "GOPATH=/gopath && cd /gopath/src/gogs.arslogi.ca/pavel/find.git && go build"| docker run --rm -i -v `pwd`:/gopath golang  bash

This can build Linux version of the project. This is necessary if I want to have a very simple and small image built from scratch. Docker does not allow for mounting of volumes during build process so this is my way around to get just a static binary for the engine. Static is simple and simple often more reliable and portable.