-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
122 lines (114 loc) · 2.87 KB
/
docker-bake.hcl
File metadata and controls
122 lines (114 loc) · 2.87 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
variable "TAG" {
default = "slim"
}
# === Version Pins (single source of truth) ===
variable "COMFYUI_VERSION" {
default = "v0.18.2"
}
variable "MANAGER_SHA" {
default = "66108ccdbc8c"
}
variable "KJNODES_SHA" {
default = "4e1458c2417d"
}
variable "CIVICOMFY_SHA" {
default = "555e984bbcb0"
}
variable "RUNPODDIRECT_SHA" {
default = "8be7b2206b75"
}
# Regular image (cu128)
variable "TORCH_VERSION" {
default = "2.10.0+cu128"
}
variable "TORCHVISION_VERSION" {
default = "0.25.0+cu128"
}
variable "TORCHAUDIO_VERSION" {
default = "2.10.0+cu128"
}
# 5090 image (cu130) — can diverge from regular when needed
variable "TORCH_VERSION_5090" {
default = "2.10.0+cu130"
}
variable "TORCHVISION_VERSION_5090" {
default = "0.25.0+cu130"
}
variable "TORCHAUDIO_VERSION_5090" {
default = "2.10.0+cu130"
}
variable "FILEBROWSER_VERSION" {
default = "v2.59.0"
}
variable "FILEBROWSER_SHA256" {
default = "8cd8c3baecb086028111b912f252a6e3169737fa764b5c510139e81f9da87799"
}
group "default" {
targets = ["common", "dev"]
}
# Common settings for all targets (defaults to regular CUDA 12.8 / cu128)
target "common" {
context = "."
dockerfile = "Dockerfile"
platforms = ["linux/amd64"]
args = {
COMFYUI_VERSION = COMFYUI_VERSION
MANAGER_SHA = MANAGER_SHA
KJNODES_SHA = KJNODES_SHA
CIVICOMFY_SHA = CIVICOMFY_SHA
RUNPODDIRECT_SHA = RUNPODDIRECT_SHA
TORCH_VERSION = TORCH_VERSION
TORCHVISION_VERSION = TORCHVISION_VERSION
TORCHAUDIO_VERSION = TORCHAUDIO_VERSION
FILEBROWSER_VERSION = FILEBROWSER_VERSION
FILEBROWSER_SHA256 = FILEBROWSER_SHA256
CUDA_VERSION_DASH = "12-8"
TORCH_INDEX_SUFFIX = "cu128"
}
}
# Regular ComfyUI image (CUDA 12.8 — default)
target "regular" {
inherits = ["common"]
tags = [
"runpod/comfyui:${TAG}-cuda12.8",
"runpod/comfyui:cuda12.8",
"runpod/comfyui:latest",
]
}
# Dev image for local testing
target "dev" {
inherits = ["common"]
tags = ["runpod/comfyui:dev"]
output = ["type=docker"]
}
# Dev push targets (for CI pushing dev tags, without overriding latest)
target "devpush" {
inherits = ["common"]
tags = ["runpod/comfyui:dev-cuda12.8"]
}
target "devpush-cuda13" {
inherits = ["common"]
tags = ["runpod/comfyui:dev-cuda13.0"]
args = {
TORCH_VERSION = TORCH_VERSION_5090
TORCHVISION_VERSION = TORCHVISION_VERSION_5090
TORCHAUDIO_VERSION = TORCHAUDIO_VERSION_5090
CUDA_VERSION_DASH = "13-0"
TORCH_INDEX_SUFFIX = "cu130"
}
}
# CUDA 13.0 image (Blackwell / RTX 5090+)
target "cuda13" {
inherits = ["common"]
tags = [
"runpod/comfyui:${TAG}-cuda13.0",
"runpod/comfyui:cuda13.0",
]
args = {
TORCH_VERSION = TORCH_VERSION_5090
TORCHVISION_VERSION = TORCHVISION_VERSION_5090
TORCHAUDIO_VERSION = TORCHAUDIO_VERSION_5090
CUDA_VERSION_DASH = "13-0"
TORCH_INDEX_SUFFIX = "cu130"
}
}