aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e1dc540a5946416204c5fcc136eedae8f965efff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: build

DOCKER_COMPOSE = docker-compose -p slack_mention_reader

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
	${DOCKER_COMPOSE}  build

up: build ## Bring the container up
	${DOCKER_COMPOSE} up -d

down: ## Stop the container
	${DOCKER_COMPOSE} stop

enter: ## Enter the running container
	${DOCKER_COMPOSE} exec backend /bin/bash

clean: down ## Remove stoped containers
	${DOCKER_COMPOSE} rm -f