You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
400 B

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