Fix bugs in multi-stage docker. Replace sqldump

This commit is contained in:
Jan Eitzinger
2021-06-22 15:17:11 +02:00
parent 9d3d94542f
commit 5a434fb0cd
7 changed files with 161 additions and 2291 deletions

View File

@@ -3,13 +3,15 @@
if [ "$APP_CLUSTERCOCKPIT_INIT" = true ]; then
rm -rf /var/www/symfony/* /var/www/symfony/.??*
git clone https://github.com/ClusterCockpit/ClusterCockpit .
yarn install
if [ "$APP_ENV" = dev ]; then
git checkout develop
composer install --no-progress --optimize-autoloader
yarn install
yarn encore dev
else
composer install --no-dev --no-progress --optimize-autoloader
yarn install
yarn encore production
fi