DOCKERIMAGE := dockermirror:5000/dpedu/nagios-4 DOCKEROPTS := .PHONY: image image: docker build -t $(DOCKERIMAGE) $(DOCKEROPTS) . .PHONY: push push: image docker push $(DOCKERIMAGE)