Skip to content

Commit 2c40436

Browse files
tonistiigicrazy-max
authored andcommitted
dockerfile: normalize platform in image config
Base image may use unnormalized platform so if platform is inherited normalize needs to be called again. Signed-off-by: Tonis Tiigi <[email protected]>
1 parent bfe3c17 commit 2c40436

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/dockerfile/dockerfile2llb/convert.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ func toDispatchState(ctx context.Context, dt []byte, opt ConvertOpt) (*dispatchS
815815
target.image.OSFeatures = append([]string{}, platformOpt.targetPlatform.OSFeatures...)
816816
}
817817
}
818+
target.image.Platform = platforms.Normalize(target.image.Platform)
818819

819820
return target, nil
820821
}

0 commit comments

Comments
 (0)