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.
19 lines
303 B
19 lines
303 B
7 years ago
|
ifeq (, $(shell docker --version))
|
||
|
$(error "Please install docker")
|
||
|
endif
|
||
|
|
||
|
NS ?= andrey01
|
||
|
NAME ?= chrome
|
||
|
VERSION ?= latest
|
||
|
|
||
|
default: build
|
||
|
|
||
|
build:
|
||
|
docker build -t $(NS)/$(NAME):$(VERSION) -f Dockerfile -- .
|
||
|
|
||
|
publish:
|
||
|
docker push $(NS)/$(NAME):$(VERSION)
|
||
|
|
||
|
clean:
|
||
|
docker rmi $(NS)/$(NAME):$(VERSION)
|