-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
50 lines (42 loc) · 1.37 KB
/
Copy pathdocker-bake.hcl
File metadata and controls
50 lines (42 loc) · 1.37 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
45
46
47
48
# =============================================================================
# Docker Bake Configuration
# =============================================================================
# Usage:
# Development: docker buildx bake
# Production: docker buildx bake prod
# =============================================================================
# -----------------------------------------------------------------------------
# Groups
# -----------------------------------------------------------------------------
group "default" {
targets = ["app", "worker"]
}
group "prod" {
targets = ["app-prod", "worker-prod"]
}
# -----------------------------------------------------------------------------
# Development Targets
# -----------------------------------------------------------------------------
target "app" {
context = "."
dockerfile = "Dockerfile.dev"
tags = ["app:dev", "app:latest"]
}
target "worker" {
context = "worker"
dockerfile = "Dockerfile.dev"
tags = ["worker:dev", "worker:latest"]
}
# -----------------------------------------------------------------------------
# Production Targets
# -----------------------------------------------------------------------------
target "app-prod" {
context = "."
dockerfile = "Dockerfile.prod"
tags = ["app:prod"]
}
target "worker-prod" {
context = "worker"
dockerfile = "Dockerfile"
tags = ["worker:prod"]
}