blob: bdef2cc53d521db858cda4a9a2bfbff18312d46d (
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 -v $(PWD):/opt --name $(CONTAINERNAME) $(IMAGENAME) python3 cli.py || echo 'Already up!'
|