diff --git a/src/spec-node/containerFeatures.ts b/src/spec-node/containerFeatures.ts index ad3eb9ce0..fe3957b59 100644 --- a/src/spec-node/containerFeatures.ts +++ b/src/spec-node/containerFeatures.ts @@ -113,7 +113,7 @@ export async function extendImage(params: DockerResolverParameters, config: Subs '--target', featureBuildInfo.overrideTarget, '-f', dockerfilePath, ...additionalImageNames.length > 0 ? additionalImageNames.map(name => ['-t', name]).flat() : ['-t', updatedImageName], - ...imageLabels.length > 0 ? imageLabels.map(label => ['--label', label]).flat() : ['--label', ''], + ...imageLabels.length > 0 ? imageLabels.map(label => ['--label', label]).flat() : [], emptyTempDir );