-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 676 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 676 Bytes
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
# Simple Docker Compose commands
.PHONY: help build up down logs shell test clean
compose = docker compose
help:
@echo "Available commands:"
@echo " build - Build Docker image"
@echo " up - Start the application"
@echo " down - Stop the application"
@echo " logs - View application logs"
@echo " shell - Open shell in container"
@echo " test - Run tests in container"
@echo " clean - Remove containers and images"
build:
$(compose) build
up:
$(compose) up -d
down:
$(compose) down
logs:
$(compose) logs -f
shell:
$(compose) exec app bash
test:
$(compose) exec app uv run pytest tests/
clean:
$(compose) down
docker system prune -f