2022-10-21 13:23:23 +00:00
|
|
|
variable "REPO_NAME" {
|
|
|
|
default = "dunglas/frankenphp"
|
|
|
|
}
|
|
|
|
|
|
|
|
group "default" {
|
2023-06-28 21:37:02 +00:00
|
|
|
targets = ["bookworm", "alpine"]
|
2022-10-21 13:23:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
target "common" {
|
|
|
|
platforms = ["linux/amd64", "linux/arm64"]
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# FrankenPHP
|
|
|
|
#
|
|
|
|
|
2023-06-28 21:37:02 +00:00
|
|
|
target "bookworm" {
|
2022-10-21 13:23:23 +00:00
|
|
|
inherits = ["common"]
|
|
|
|
context = "."
|
|
|
|
dockerfile = "Dockerfile"
|
2023-06-28 21:37:02 +00:00
|
|
|
tags = ["${REPO_NAME}:bookworm", "${REPO_NAME}:latest"]
|
2022-10-21 13:23:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
target "alpine" {
|
|
|
|
inherits = ["common"]
|
|
|
|
context = "."
|
|
|
|
dockerfile = "Dockerfile.alpine"
|
|
|
|
tags = ["${REPO_NAME}:alpine"]
|
|
|
|
}
|