feat(docker): prod, fix misc
This commit is contained in:
parent
807e596637
commit
07bd63aabd
1 changed files with 11 additions and 8 deletions
19
Dockerfile
19
Dockerfile
|
@ -420,20 +420,23 @@ COPY ./docker/sintonia-webapp/php/php-ini-production /usr/local/etc/php/php.ini
|
||||||
USER $sintonia_user
|
USER $sintonia_user
|
||||||
WORKDIR /var/www/sintonia_webapp
|
WORKDIR /var/www/sintonia_webapp
|
||||||
|
|
||||||
RUN cron && \
|
RUN git clone --branch dev --single-branch https://git.congegni.net/Congegni/sintonia_webapp . && \
|
||||||
git clone --branch dev --single-branch https://git.congegni.net/Congegni/sintonia_webapp . && \
|
|
||||||
/home/$sintonia_user/composer install --no-progress --no-interaction && \
|
/home/$sintonia_user/composer install --no-progress --no-interaction && \
|
||||||
/home/$sintonia_user/composer --no-cache dump-autoload --no-interaction && \
|
/home/$sintonia_user/composer --no-cache dump-autoload --no-interaction
|
||||||
php artisan migrate && \
|
|
||||||
|
RUN php artisan migrate && \
|
||||||
php artisan key:generate && \
|
php artisan key:generate && \
|
||||||
php artisan db:seed && \
|
php artisan db:seed && \
|
||||||
php artisan schedule:run >> /dev/null 2>&1 && \
|
|
||||||
set -eux && \
|
set -eux && \
|
||||||
npm i && \
|
npm i && \
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
RUN rm -rf /var/www/sintonia_webapp/node_modules /var/www/sintonia_webapp/.npm /var/www/sintonia_webapp/.composer /var/www/sintonia_webapp/.git && \
|
||||||
|
rm -rf /home/$sintonia_user/node* /home/$sintonia_user/composer
|
||||||
|
|
||||||
|
RUN cron && \
|
||||||
php-fpm -D && \
|
php-fpm -D && \
|
||||||
npm run build && \
|
php artisan schedule:run >> /dev/null 2>&1 && \
|
||||||
rm -rf /var/www/sintonia_webapp/node_modules /var/www/sintonia_webapp/.npm /var/www/sintonia_webapp/.composer /var/www/sintonia_webapp/.git && \
|
|
||||||
rm -rf /home/$sintonia_user/node* /home/$sintonia_user/composer && \
|
|
||||||
sleep infinity
|
sleep infinity
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue