Repository navigation
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
49 lines (44 loc) · 1.38 KB
/
Copy pathdocker-bake.hcl
File metadata and controls
49 lines (44 loc) · 1.38 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
variable "VERSION" { default = "dev" }
variable "OCI_VERSION" { default = "dev" }
variable "COMMIT" { default = "unknown" }
variable "REVISION" { default = "unknown" }
variable "BUILD_DATE" { default = "" }
variable "OCI_OUTPUT_DIR" { default = "./dist" }
target "oci" {
name = "oci-${platform.architecture}"
matrix = {
platform = [
{
os = "linux"
architecture = "amd64"
},
{
os = "linux"
architecture = "arm64"
},
]
}
context = "."
dockerfile = "Dockerfile"
platforms = ["${platform.os}/${platform.architecture}"]
args = {
VERSION = VERSION
COMMIT = COMMIT
BUILD_DATE = BUILD_DATE
}
labels = {
"org.opencontainers.image.created" = BUILD_DATE
"org.opencontainers.image.description" = "Local web viewer for AI agent sessions"
"org.opencontainers.image.licenses" = "MIT"
"org.opencontainers.image.revision" = REVISION
"org.opencontainers.image.source" = "https://github.com/kenn-io/agentsview"
"org.opencontainers.image.title" = "AgentsView"
"org.opencontainers.image.url" = "https://github.com/kenn-io/agentsview"
"org.opencontainers.image.version" = OCI_VERSION
}
output = [{
type = "oci"
dest = "${OCI_OUTPUT_DIR}/${platform.architecture}.oci.tar"
"oci-mediatypes" = true
}]
}