guneysus
3/31/2016 - 3:52 PM

Docker my essential Makefile

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