Fix missing dependencies on first load

This commit is contained in:
Oliver Davies 2023-01-21 19:52:58 +00:00
parent f2e95f2b07
commit 43f27371e2
3 changed files with 14 additions and 0 deletions

View file

@ -60,6 +60,10 @@ final class BuildConfigurationCommand extends Command
$this->filesystem->dumpFile("{$outputDir}/phpcs.xml.dist", $this->twig->render('phpcs.xml.twig', $configurationData));
$this->filesystem->dumpFile("{$outputDir}/phpstan.neon.dist", $this->twig->render('phpstan.neon.twig', $configurationData));
$this->filesystem->dumpFile("{$outputDir}/phpunit.xml.dist", $this->twig->render('phpunit.xml.twig', $configurationData));
$this->filesystem->mkdir("{$outputDir}/tools/docker/images/php/root/usr/local/bin");
$this->filesystem->dumpFile("{$outputDir}/tools/docker/images/php/root/usr/local/bin/docker-entrypoint-php", $this->twig->render('docker-entrypoint-php.twig', $configurationData));
}
}
return Command::SUCCESS;

View file

@ -32,6 +32,11 @@ RUN {% for command in dockerfile.stages.build.commands %}
{% endfor %}
{% endif %}
COPY tools/docker/images/php/root /
ENTRYPOINT ["/usr/local/bin/docker-entrypoint-php"]
CMD ["php-fpm"]
{% if dockerfile.stages.test %}
################################################################################

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
[[ -f composer.json && ! -d vendor ]] && composer install
eval "$@"