mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
refactor: simplify packages and PHP extensions
Refs: OD-34
This commit is contained in:
parent
64457770b9
commit
8e888529e0
|
@ -21,6 +21,26 @@ final class CreateFinalConfigurationData
|
||||||
|
|
||||||
$configurationData['managedText'] = 'Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.';
|
$configurationData['managedText'] = 'Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.';
|
||||||
|
|
||||||
|
$basePackages = [
|
||||||
|
'git',
|
||||||
|
'libpng-dev',
|
||||||
|
'libzip-dev',
|
||||||
|
// TODO: only add `mariadb-client` if MariaDB is used.
|
||||||
|
'mariadb-client',
|
||||||
|
'unzip',
|
||||||
|
];
|
||||||
|
|
||||||
|
$phpExtensions = [
|
||||||
|
'bcmath',
|
||||||
|
'gd',
|
||||||
|
// TODO: only add `pdo_mysql` if its used.
|
||||||
|
'pdo_mysql',
|
||||||
|
'zip',
|
||||||
|
];
|
||||||
|
|
||||||
|
$configurationData['dockerfile']['stages']['build']['packages'] = $basePackages;
|
||||||
|
$configurationData['dockerfile']['stages']['build']['extensions'] = $phpExtensions;
|
||||||
|
|
||||||
return $next($configurationData);
|
return $next($configurationData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue