39 lines
711 B
HCL
39 lines
711 B
HCL
variable "NEURALHUNT_SERVER_IMAGE" {
|
|
default = "neuralhunt-server:local"
|
|
}
|
|
|
|
variable "NEURALHUNT_CUSTOMER_IMAGE" {
|
|
default = "neuralhunt-customer-service:local"
|
|
}
|
|
|
|
variable "CS_WORKER_IMAGE" {
|
|
default = "neuralhunt-worker:local"
|
|
}
|
|
|
|
group "default" {
|
|
targets = ["server", "customer-service", "worker"]
|
|
}
|
|
|
|
target "common" {
|
|
context = "."
|
|
dockerfile = "Dockerfile"
|
|
}
|
|
|
|
target "server" {
|
|
inherits = ["common"]
|
|
target = "server"
|
|
tags = [NEURALHUNT_SERVER_IMAGE]
|
|
}
|
|
|
|
target "customer-service" {
|
|
inherits = ["common"]
|
|
target = "customer-service"
|
|
tags = [NEURALHUNT_CUSTOMER_IMAGE]
|
|
}
|
|
|
|
target "worker" {
|
|
inherits = ["common"]
|
|
target = "worker"
|
|
tags = [CS_WORKER_IMAGE]
|
|
}
|