Dockerize Your Go Web App

After browsing around the internet I couldn’t find any guides for exactly what I wanted to do with a prototype I was writing and so decided to share my discoveries. After writing your web app in Go to get it ready for deployment in docker (and later to the cloud) create a new file named dockerfile in the main directory ~/go/src/<my-app>.

Check the version of go you are using quickly with  $ go version and then add the following to your new dockerfile:

[Read More]