-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
53 lines (43 loc) · 1.04 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
variable "REGISTRY" {
default = "docker.io"
}
variable "REGISTRY_USER" {
default = "ashleykza"
}
variable "APP" {
default = "kohya"
}
variable "RELEASE" {
default = "24.1.6"
}
variable "CU_VERSION" {
default = "121"
}
variable "BASE_IMAGE_REPOSITORY" {
default = "ashleykza/runpod-base"
}
variable "BASE_IMAGE_VERSION" {
default = "2.2.3"
}
variable "CUDA_VERSION" {
default = "12.1.1"
}
variable "TORCH_VERSION" {
default = "2.1.2"
}
variable "PYTHON_VERSION" {
default = "3.10"
}
target "default" {
dockerfile = "Dockerfile"
tags = ["${REGISTRY}/${REGISTRY_USER}/${APP}:${RELEASE}"]
args = {
RELEASE = "${RELEASE}"
BASE_IMAGE = "${BASE_IMAGE_REPOSITORY}:${BASE_IMAGE_VERSION}-python${PYTHON_VERSION}-cuda${CUDA_VERSION}-torch${TORCH_VERSION}"
INDEX_URL = "https://download.pytorch.org/whl/cu${CU_VERSION}"
TORCH_VERSION = "2.1.2+cu${CU_VERSION}"
XFORMERS_VERSION = "0.0.23.post1"
KOHYA_VERSION = "v${RELEASE}"
APP_MANAGER_VERSION = "1.2.1"
}
}