-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-bake.hcl
96 lines (89 loc) · 1.68 KB
/
docker-bake.hcl
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
group "default" {
targets = ["no_model", "ubi-no_model", "build"]
}
variable "WHISPER_MODEL" {
default = "base"
}
variable "LANG" {
default = "en"
}
target "build" {
matrix = {
"WHISPER_MODEL" = [
"tiny",
"base",
"small",
"medium",
"large-v2",
"large-v3",
]
"LANG" = [
"en",
"fr",
"de",
"es",
"it",
"ja",
"zh",
"nl",
"uk",
"pt",
"ar",
"cs",
"ru",
"pl",
"hu",
"fi",
"fa",
"el",
"tr",
"da",
"he",
"vi",
"ko",
"ur",
"te",
"hi",
"ca",
"ml",
"no",
"nn",
"sk",
"sl",
"hr"
]
}
args = {
WHISPER_MODEL = "${WHISPER_MODEL}"
LANG = "${LANG}"
}
name = "whisperx-${WHISPER_MODEL}-${LANG}"
dockerfile = "Dockerfile"
tags = [
"ghcr.io/jim60105/whisperx:${WHISPER_MODEL}-${LANG}"
]
platforms = ["linux/amd64", "linux/arm64"]
cache-from = ["type=local,mode=max,src=cache"]
cache-to = ["type=local,mode=max,dest=cache"]
}
target "no_model" {
dockerfile = "Dockerfile"
target = "no_model"
tags = [
"ghcr.io/jim60105/whisperx:latest",
"ghcr.io/jim60105/whisperx:no_model"
]
platforms = ["linux/amd64", "linux/arm64"]
cache-from = ["type=local,mode=max,src=cache"]
cache-to = ["type=local,mode=max,dest=cache"]
}
target "ubi-no_model" {
dockerfile = "ubi.Dockerfile"
target = "no_model"
tags = [
"ghcr.io/jim60105/whisperx:ubi-no_model"
]
platforms = ["linux/amd64", "linux/arm64"]
cache-from = ["type=local,mode=max,src=cache"]
cache-to = ["type=local,mode=max,dest=cache"]
}