add a makefile
This commit is contained in:
parent
c90cc56146
commit
b3e786cd28
18
Makefile
Normal file
18
Makefile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
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)
|
Loading…
Reference in New Issue
Block a user