From b3e786cd2807ddeececef0e1e003f8548e5271cb Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Thu, 7 Sep 2017 08:44:45 +0200 Subject: [PATCH] add a makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..018a5e3 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +ifeq (, $(shell docker --version)) + $(error "Please install docker") +endif + +NS ?= andrey01 +NAME ?= chrome +VERSION ?= latest + +default: build + +build: + docker build -t $(NS)/$(NAME):$(VERSION) -f Dockerfile -- . + +publish: + docker push $(NS)/$(NAME):$(VERSION) + +clean: + docker rmi $(NS)/$(NAME):$(VERSION)