Skip to content

Instantly share code, notes, and snippets.

@boncheff
Created May 31, 2016 14:36
Show Gist options
  • Save boncheff/227164c9008d55b6b5b9e1445ae98060 to your computer and use it in GitHub Desktop.
Save boncheff/227164c9008d55b6b5b9e1445ae98060 to your computer and use it in GitHub Desktop.
Simple Makefile for a dockerised go application
binary:
CGO_ENABLED=0 go build -v -o <project_name> .
.PHONY : binary
container: binary
docker build -t <project_name> -f Dockerfile .
.PHONY : container
clean:
rm -f <project_name>
.PHONE: clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment