aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 30982dcc09d3ad7219d25ca5a71b0bd1f8473cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.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 --rm -v $(PWD):/opt --name $(CONTAINERNAME) $(IMAGENAME) python3 cli.py || echo 'Already up!'