parent
4e456f6d90
commit
e8975f1f7d
@ -0,0 +1,20 @@
|
|||||||
|
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
|
Loading…
Reference in new issue