feat(docker): prod, fix misc

This commit is contained in:
Michael 2025-06-05 11:19:29 +02:00
parent fb9448ef71
commit cfbf1bca84

View file

@ -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 && \