feat(docker): prod, fix misc

This commit is contained in:
Michael 2025-06-04 16:07:54 +02:00
parent 4b12f63f2c
commit 185ffe6e33

View file

@ -412,11 +412,16 @@ CMD cron && \
FROM sintonia-webapp-build-common AS sintonia-webapp-production FROM sintonia-webapp-build-common AS sintonia-webapp-production
USER $sintonia_user
USER root
COPY ./docker/sintonia-webapp/php/php-ini-production /usr/local/etc/php/php.ini COPY ./docker/sintonia-webapp/php/php-ini-production /usr/local/etc/php/php.ini
USER $sintonia_user
WORKDIR /var/www/sintonia_webapp
RUN cron && \ RUN cron && \
git clone --branch dev --single-branch https://git.congegni.net/sintonia_webapp && \ git clone --branch dev --single-branch https://armadio.congegni.net/sintonia_webapp && \
cd sintonia_webapp && \ cd sintonia_webapp && \
/home/$sintonia_user/composer install --no-progress --no-interaction --no-autoloader && \ /home/$sintonia_user/composer install --no-progress --no-interaction --no-autoloader && \
/home/$sintonia_user/composer --no-cache dump-autoload --no-interaction && \ /home/$sintonia_user/composer --no-cache dump-autoload --no-interaction && \