mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-02 13:57:33 +00:00
Fix missing dependencies on first load
This commit is contained in:
parent
f2e95f2b07
commit
43f27371e2
|
@ -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}/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}/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->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;
|
return Command::SUCCESS;
|
||||||
|
|
|
@ -32,6 +32,11 @@ RUN {% for command in dockerfile.stages.build.commands %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
COPY tools/docker/images/php/root /
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint-php"]
|
||||||
|
CMD ["php-fpm"]
|
||||||
|
|
||||||
{% if dockerfile.stages.test %}
|
{% if dockerfile.stages.test %}
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
|
5
templates/docker-entrypoint-php.twig
Executable file
5
templates/docker-entrypoint-php.twig
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[[ -f composer.json && ! -d vendor ]] && composer install
|
||||||
|
|
||||||
|
eval "$@"
|
Loading…
Reference in a new issue