We recently started writing microservices in Go and, along the way, we wrote a small tool to automate building statically linked binaries and packaging them into minimal Docker containers.

Today we’re releasing this tool as gockerize on GitHub, in the hope that it can be useful to others.

It is a fairly simple tool but it comes with a few neat features, such as the ability to automatically apply a set of patches to the Golang standard library; something which, while very rarely needed, can be a life-saver.

We’re always looking for ways to improve our internal tools so we would love to hear your feedback and suggestions, especially if you have experimented with mixing Golang and Docker. Don’t hesitate to reach out to us at or on GitHub.
— Hugues & the AeroFS Team.