From cfbf1bca84d3e43925da278633f69818a843790d Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 5 Jun 2025 11:19:29 +0200 Subject: [PATCH] feat(docker): prod, fix misc --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 22ea72a26..118a2584e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -416,17 +416,17 @@ FROM sintonia-webapp-build-common AS sintonia-webapp-production USER root COPY ./docker/sintonia-webapp/php/php-ini-production /usr/local/etc/php/php.ini +COPY ./docker/sintonia-webapp/laravel/.env.production.example /home/$sintonia_user/.env +RUN chown $sintonia_user:$sintonia_user /home/$sintonia_user/.env USER $sintonia_user WORKDIR /var/www/sintonia_webapp RUN git clone --branch dev --single-branch https://git.congegni.net/Congegni/sintonia_webapp . && \ + cp /home/$sintonia_user/.env /var/www/sintonia_webapp && \ /home/$sintonia_user/composer install --no-progress --no-interaction && \ /home/$sintonia_user/composer --no-cache dump-autoload --no-interaction -COPY ./docker/sintonia-webapp/laravel/.env.production.example /var/www/sintonia_webapp/.env -RUN chown $sintonia_user:$sintonia_user /var/www/sintonia_webapp/.env - RUN php artisan key:generate && \ php artisan migrate && \ php artisan db:seed && \