This is a sample go project provides you with :
-
project structure to let you start coding directly
-
Makefile to test, build static binary and dockerize you app
-
Dockerfile running static binary
To dockerize you app run the following command:
make dockerize
Credits
This project is based on a go project structure provided by generator-go adding dockerization and building static binary instead of dynamically linked to optimize container size.