IMG := autonomic/autonomic.zone NAME := autonomic-zone-testing PORT := 4000 TAG := testing build: @docker build -t $(IMG):$(TAG) . .PHONY: build stop: @docker stop $(NAME) && docker rm $(NAME) --force .PHONY: stop serve: build @docker run \ --name $(NAME) \ -e JEKYLL_PORT=$(PORT) \ -e JEKYLL_HOST=0.0.0.0 \ -e JEKYLL_CONFIG=_config_dev.yml \ -e JEKYLL_ENV=development \ -v $$(pwd):/usr/src/app \ -p $(PORT):$(PORT) \ -d \ $(IMG):$(TAG) && \ echo "Site available at http://localhost:4000" .PHONY: serve