frigate/docker/tensorrt/trt.hcl

74 lines
1.4 KiB
HCL
Raw Normal View History

2023-07-18 19:52:32 +03:00
variable "ARCH" {
default = "amd64"
}
target "_build_args" {
platforms = ["linux/${ARCH}"]
}
target deps {
dockerfile = "docker/main/Dockerfile"
target = "deps"
2023-07-18 19:52:32 +03:00
inherits = ["_build_args"]
}
target rootfs {
dockerfile = "docker/main/Dockerfile"
target = "rootfs"
2023-07-18 19:52:32 +03:00
inherits = ["_build_args"]
}
target wheels {
dockerfile = "docker/main/Dockerfile"
target = "wheels"
2023-07-18 19:52:32 +03:00
inherits = ["_build_args"]
}
target devcontainer {
dockerfile = "docker/main/Dockerfile"
platforms = ["linux/amd64"]
target = "devcontainer"
}
2023-07-18 19:52:32 +03:00
target "trt-deps" {
dockerfile = "docker/tensorrt/Dockerfile.base"
context = "."
contexts = {
deps = "target:deps",
}
2023-07-18 19:52:32 +03:00
inherits = ["_build_args"]
}
2023-07-18 19:52:32 +03:00
target "tensorrt-base" {
dockerfile = "docker/tensorrt/Dockerfile.base"
context = "."
contexts = {
deps = "target:deps",
2023-07-18 19:52:32 +03:00
}
inherits = ["_build_args"]
}
target "tensorrt" {
dockerfile = "docker/tensorrt/Dockerfile.${ARCH}"
context = "."
contexts = {
tensorrt-base = "target:tensorrt-base",
rootfs = "target:rootfs"
wheels = "target:wheels"
2023-07-18 19:52:32 +03:00
}
target = "frigate-tensorrt"
inherits = ["_build_args"]
}
target "devcontainer-trt" {
dockerfile = "docker/tensorrt/Dockerfile.amd64"
context = "."
contexts = {
wheels = "target:wheels",
trt-deps = "target:trt-deps",
devcontainer = "target:devcontainer"
}
platforms = ["linux/amd64"]
target = "devcontainer-trt"
2023-07-18 19:52:32 +03:00
}