19 lines
310 B
Makefile
19 lines
310 B
Makefile
ifeq (, $(shell docker --version))
|
|
$(error "Please install docker")
|
|
endif
|
|
|
|
NS ?= andrey01
|
|
NAME ?= chrome
|
|
VERSION ?= latest
|
|
|
|
default: build
|
|
|
|
build:
|
|
docker build --pull -t $(NS)/$(NAME):$(VERSION) -f Dockerfile -- .
|
|
|
|
publish:
|
|
docker push $(NS)/$(NAME):$(VERSION)
|
|
|
|
clean:
|
|
docker rmi $(NS)/$(NAME):$(VERSION)
|