diff --git a/src/Action/CreateFinalConfigurationData.php b/src/Action/CreateFinalConfigurationData.php index ef3dfb8..001d015 100644 --- a/src/Action/CreateFinalConfigurationData.php +++ b/src/Action/CreateFinalConfigurationData.php @@ -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); }