2017-10-04 15:44:28 +00:00
|
|
|
NS ?= andrey01
|
|
|
|
NAME ?= steam
|
2018-12-22 11:06:08 +00:00
|
|
|
VERSION ?= 1.0
|
2017-10-04 15:44:28 +00:00
|
|
|
|
|
|
|
default: build
|
|
|
|
|
|
|
|
build:
|
2018-12-28 16:34:18 +00:00
|
|
|
docker build -t $(NS)/$(NAME):$(VERSION) -t $(NS)/$(NAME):latest -f Dockerfile .
|
2017-10-04 15:44:28 +00:00
|
|
|
|
|
|
|
publish:
|
|
|
|
docker push $(NS)/$(NAME):$(VERSION)
|
|
|
|
docker push $(NS)/$(NAME):latest
|
|
|
|
|
|
|
|
check:
|
|
|
|
docker run --rm -i $(NS)/$(NAME):$(VERSION) sh -c "set -x; exit 0"
|
|
|
|
|
|
|
|
console:
|
|
|
|
docker run --rm -ti --entrypoint sh $(NS)/$(NAME):$(VERSION)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
docker rmi $(NS)/$(NAME):$(VERSION) $(NS)/$(NAME):latest
|