-
Notifications
You must be signed in to change notification settings - Fork 231
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 1.08 KB
/
Copy pathMakefile
File metadata and controls
44 lines (32 loc) · 1.08 KB
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
# Makefile
# Load .env file if it exists
-include .env
ifneq ("$(wildcard .env)","")
export $(shell sed 's/=.*//' .env)
endif
setup:
python scripts/bootstrap.py
doctor:
python scripts/doctor.py
build:
docker build -t cornatul/webai.ai:latest .
build-fresh:
docker build --no-cache -t cornatul/webai.ai:latest .
up:
@test -f config.conf || { echo "ERROR: config.conf missing or is a directory. Run 'python scripts/bootstrap.py' first."; exit 1; }
@test -f .env || { echo "ERROR: .env missing or is a directory. Run 'python scripts/bootstrap.py' first."; exit 1; }
docker compose up -d
up-attach:
@test -f config.conf || { echo "ERROR: config.conf missing or is a directory. Run 'python scripts/bootstrap.py' first."; exit 1; }
@test -f .env || { echo "ERROR: .env missing or is a directory. Run 'python scripts/bootstrap.py' first."; exit 1; }
docker compose up
logs:
docker compose logs -f web_ai
stop:
docker compose down
down:
docker compose down
push:
docker push cornatul/webai.ai:latest
export-reqs:
poetry export -f requirements.txt --output requirements.txt --without-hashes