steam/Makefile
2018-12-28 17:34:18 +01:00

22 lines
446 B
Makefile

NS ?= andrey01
NAME ?= steam
VERSION ?= 1.0
default: build
build:
docker build -t $(NS)/$(NAME):$(VERSION) -t $(NS)/$(NAME):latest -f Dockerfile .
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