diff --git a/lib/modules/manager/dockerfile/extract.ts b/lib/modules/manager/dockerfile/extract.ts index 53dd55502485584..1395dbcc1e57cb5 100644 --- a/lib/modules/manager/dockerfile/extract.ts +++ b/lib/modules/manager/dockerfile/extract.ts @@ -385,7 +385,7 @@ export function extractPackageFile( const copyFromRegex = new RegExp( '^[ \\t]*COPY(?:' + escapeChar + - '[ \\t]*\\r?\\n| |\\t|#.*?\\r?\\n|--[a-z]+=[a-zA-Z0-9_.:-]+?)+--from=(?\\S+)', + '[ \\t]*\\r?\\n| |\\t|#.*?\\r?\\n|--[a-z]+(?:=[a-zA-Z0-9_.:-]+?)?)+--from=(?\\S+)', 'im', ); // TODO #12875 complex for re2 has too many not supported groups const copyFromMatch = instruction.match(copyFromRegex);