-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile
45 lines (36 loc) · 816 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Development options
build:
docker image build -t faffinity-bot-dev .
init-db:
docker container run -it --rm \
-v $(PWD)/data:/app/data \
faffinity-bot-dev \
python3 cmd/init_db.py
run:
docker container run -it --rm \
--name fa-bot-dev \
-v $(PWD)/data:/app/data \
-v $(PWD)/src:/app/src \
--env-file data/.env \
faffinity-bot-dev
# Production options
build-prod:
docker image build \
-f Dockerfile.production \
-t svex/faffinity-bot .
init-db-prod:
docker container run -it --rm \
-v $(PWD)/data:/app/data \
svex/faffinity-bot \
python3 cmd/init_db.py
run-prod:
docker container run -d \
--name fa-bot \
--restart always \
-v $(PWD)/data:/app/data \
--env-file data/.env \
svex/faffinity-bot
logs:
docker container logs -f fa-bot
down:
docker container rm -f fa-bot