-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
25 lines (17 loc) · 780 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# For Makefile idea see https://gist.github.com/mpneuried/0594963ad38e68917ef189b4e6a269db
# HELP
# This will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
APP_NAME=docker_kenspace_backend
build: ## Build the container
docker build -t $(APP_NAME) .
build-nc: ## Build the container without caching
docker build --no-cache -t $(APP_NAME) .
run: ## Run container
docker run --rm -p=5000:5000 --name="$(APP_NAME)" $(APP_NAME)
run-server: ## Run container on Server in Backend
docker run -d -p=5000:5000 --name="$(APP_NAME)" $(APP_NAME)