firefox/Makefile

21 lines
400 B
Makefile
Raw Permalink Normal View History

2017-09-29 11:57:00 +00:00
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