I need to use separate dockerfiles for different platforms, but want to see a result as one multi-platform image.
I try to use bake file:
cat bake.hcl
variable "V" {
default = "latest"
}
group "default" {
targets = ["inadyn-x64", "inadyn-arm"]
}
target "inadyn-x64" {
dockerfile = "Dockerfile"
context = "."
platforms = ["linux/amd64"]
tags = ["docker.io/shtripok/inadyn:${V}"]
}
target "inadyn-arm" {
inherits = ["inadyn-x64"]
dockerfile = "Dockerfile.arm"
platforms = [ "linux/arm64", "linux/arm/v7" ]
}
but seems it first push x64 single platform image, then overwrite it with two-platform arm image.
Is it possible to get one tri-platform image with 2 different dockerfile?
I need to use separate dockerfiles for different platforms, but want to see a result as one multi-platform image.
I try to use bake file:
but seems it first push x64 single platform image, then overwrite it with two-platform arm image.
Is it possible to get one tri-platform image with 2 different dockerfile?