feat(dockerfile): allow for specifying custom PHP

...extensions
This commit is contained in:
Oliver Davies 2023-05-09 21:01:56 +01:00
parent 701f382ccd
commit 76140850f3

View file

@ -39,7 +39,11 @@ final class CreateFinalConfigurationData
$configurationData['dockerfile']['stages']['build']['packages'] = $basePackages;
$configurationData['dockerfile']['stages']['build']['extensions']['install'] = $phpExtensions;
$configurationData['dockerfile']['stages']['build']['extensions']['install'] = collect($phpExtensions)
->merge($configurationData['dockerfile']['stages']['build']['extensions']['install'])
->unique()
->sort()
->toArray();
return $next($configurationData);
}