-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
53 lines (48 loc) · 1.34 KB
/
docker-bake.hcl
File metadata and controls
53 lines (48 loc) · 1.34 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
variable "BASE_IMAGE" {
default = "nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04"
}
variable "LOLLMS_COMMIT" {
default = ""
}
group "default" {
targets = ["lollms-webui"]
}
target "_base" {
platforms = ["linux/amd64"]
}
target "lollms-webui" {
name = "lollms-webui-${replace(item.tag, ".", "_")}"
inherits = ["_base"]
matrix = {
item = [
{
tag = "latest"
version = "main"
update_submodules = "true"
},
{
tag = "9.2"
version = "v9.2"
update_submodules = "false"
}
]
}
dockerfile = "Dockerfile"
context = "./lollms-webui"
tags = [
"imzacm/lollms-webui:${item.tag}",
"ghcr.io/imzacm/llm-docker:lollms-webui-${item.tag}",
notequal("", LOLLMS_COMMIT) ? "imzacm/lollms-webui:${item.tag}-${LOLLMS_COMMIT}" : "",
notequal("", LOLLMS_COMMIT) ? "ghcr.io/imzacm/llm-docker:lollms-webui-${item.tag}-${LOLLMS_COMMIT}" : ""
]
contexts = {
base_image = "docker-image://${BASE_IMAGE}"
}
args = {
WEBUI_VERSION = item.version
UPDATE_SUBMODULES = item.update_submodules
}
target = "lollms"
cache-from = ["type=registry,ref=imzacm/lollms-webui:${item.tag}"]
cache-to = ["type=inline,mode=max"]
}