.PHONY: build SHELL := /bin/bash CONTAINERNAME=accli IMAGENAME=accli help: @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' build: ## Build the Docker image cp -r requirements.txt ./docker cp -r config.json ./docker docker build -t $(IMAGENAME) ./docker up: build ## Bring the Docker container up docker run -it -v $(PWD):/opt --name $(CONTAINERNAME) $(IMAGENAME) python3 cli.py || echo 'Already up!'