diff --git a/exporter/containerimage/image/docker_image.go b/exporter/containerimage/image/docker_image.go index 6d11962cd5bc..a35d811d55cf 100644 --- a/exporter/containerimage/image/docker_image.go +++ b/exporter/containerimage/image/docker_image.go @@ -49,7 +49,4 @@ type Image struct { // Config defines the execution parameters which should be used as a base when running a container using the image. Config ImageConfig `json:"config,omitempty"` - - // Variant defines platform variant. To be added to OCI. - Variant string `json:"variant,omitempty"` } diff --git a/frontend/dockerfile/dockerfile2llb/image.go b/frontend/dockerfile/dockerfile2llb/image.go index ddd7eba8ad9d..36b27aa28aba 100644 --- a/frontend/dockerfile/dockerfile2llb/image.go +++ b/frontend/dockerfile/dockerfile2llb/image.go @@ -24,8 +24,8 @@ func emptyImage(platform ocispecs.Platform) Image { Image: ocispecs.Image{ Architecture: platform.Architecture, OS: platform.OS, + Variant: platform.Variant, }, - Variant: platform.Variant, } img.RootFS.Type = "layers" img.Config.WorkingDir = "/"