ifeq (, $(shell docker --version)) $(error "Please install docker") endif NS ?= andrey01 NAME ?= firefox VERSION ?= 56.0 default: build build: docker build --pull -t $(NS)/$(NAME):$(VERSION) -t $(NS)/$(NAME):latest -f Dockerfile -- . publish: docker push $(NS)/$(NAME):$(VERSION) docker push $(NS)/$(NAME):latest clean: docker rmi $(NS)/$(NAME):$(VERSION) docker rmi $(NS)/$(NAME):latest