Skip to content

Commit aa5ffe7

Browse files
authored
makefile added (#55)
* makefile added * added -n into copy command
1 parent bd58653 commit aa5ffe7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
SHELL := /bin/sh
2+
.PHONY: install-requirements build run restart stop logs
3+
4+
5+
install-requirements:
6+
@curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
7+
pip install docker-compose --user
8+
9+
10+
build:
11+
@cp -n .example.variables.env .variables.env
12+
@docker-compose build --force-rm
13+
14+
15+
run:
16+
@docker-compose up --force-recreate -d
17+
18+
19+
restart:
20+
@docker-compose restart -t 0
21+
22+
23+
stop:
24+
@docker-compose down -t 0
25+
26+
27+
logs:
28+
@docker-compose logs -f
29+

0 commit comments

Comments
 (0)