variable "VERSION" {
default = "DEV"
}
target "common" {
context = "."
platforms = ["linux/amd64", "linux/arm64"]
}
group "default" {
targets = ["base", "uvx", "deno"]
}
target "base" {
inherits = ["common"]
dockerfile = "docker/base.Dockerfile"
tags = [
"supercorp/supergateway:latest",
"supercorp/supergateway:base",
"supercorp/supergateway:${VERSION}"
]
}
target "uvx" {
inherits = ["common"]
depends_on = ["base"]
dockerfile = "docker/uvx.Dockerfile"
contexts = { base = "target:base" }
tags = [
"supercorp/supergateway:uvx",
"supercorp/supergateway:${VERSION}-uvx"
]
}
target "deno" {
inherits = ["common"]
depends_on = ["base"]
dockerfile = "docker/deno.Dockerfile"
contexts = { base = "target:base" }
tags = [
"supercorp/supergateway:deno",
"supercorp/supergateway:${VERSION}-deno"
]
}