From a179f1b0ee471a2c4ec66d21c7a8c43975be98dd Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 12 Mar 2023 11:11:45 +0000 Subject: [PATCH] refactor: move the PHP Dockerfile --- src/Console/Command/BuildConfigurationCommand.php | 2 +- templates/{ => php}/Dockerfile.twig | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename templates/{ => php}/Dockerfile.twig (100%) diff --git a/src/Console/Command/BuildConfigurationCommand.php b/src/Console/Command/BuildConfigurationCommand.php index 0cf20e4..6333633 100644 --- a/src/Console/Command/BuildConfigurationCommand.php +++ b/src/Console/Command/BuildConfigurationCommand.php @@ -82,7 +82,6 @@ final class BuildConfigurationCommand extends Command $io->info("Building configuration for {$configurationData['name']}."); $this->filesToGenerate->push(['env.example', '.env.example']); - $this->filesToGenerate->push(['Dockerfile', 'Dockerfile']); if (false !== Arr::get($configurationData, "justfile", true)) { $this->filesToGenerate->push(['justfile', 'justfile']); @@ -93,6 +92,7 @@ final class BuildConfigurationCommand extends Command } if (self::isPhp(Arr::get($configurationData, 'language'))) { + $this->filesToGenerate->push(['php/Dockerfile', 'Dockerfile']); $this->filesToGenerate->push(['php/phpcs.xml', 'phpcs.xml.dist']); $this->filesToGenerate->push(['php/phpstan.neon', 'phpstan.neon.dist']); $this->filesToGenerate->push(['php/phpunit.xml', 'phpunit.xml.dist']); diff --git a/templates/Dockerfile.twig b/templates/php/Dockerfile.twig similarity index 100% rename from templates/Dockerfile.twig rename to templates/php/Dockerfile.twig