From dd68f6c03e9e0b03cda0d2705089beac098d74aa Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 14 Feb 2023 11:22:30 +0000 Subject: [PATCH] fix: ensure docker-entrypoint-php is executable --- src/Console/Command/BuildConfigurationCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Console/Command/BuildConfigurationCommand.php b/src/Console/Command/BuildConfigurationCommand.php index 5ad934a..1187411 100644 --- a/src/Console/Command/BuildConfigurationCommand.php +++ b/src/Console/Command/BuildConfigurationCommand.php @@ -150,6 +150,11 @@ final class BuildConfigurationCommand extends Command })->each(function(array $filenames) use ($configurationData): void { $this->filesystem->dumpFile($filenames[1], $this->twig->render($filenames[0], $configurationData)); }); + + // If the Docker entrypoint file is generated, ensure it is executable. + if ($this->filesystem->exists("{$this->outputDir}/tools/docker/images/php/root/usr/local/bin/docker-entrypoint-php")) { + $this->filesystem->chmod("{$this->outputDir}/tools/docker/images/php/root/usr/local/bin/docker-entrypoint-php", 0755); + } } private static function isNginx(?string $webServer): bool