Docker my essential Makefile
IMAGE=guneysu/nodejs-alpine
CONTAINER=nodejs-alpine
build:
@docker build -t $(IMAGE) .
run:
@docker run --name=$(CONTAINER) -t $(IMAGE) sh -l
tty:
@docker exec -it $(CONTAINER) sh -l
stop:
@docker stop $(CONTAINER)
remove:
@docker rm $(CONTAINER)
.PHONY: build run tty stop remove