feat(docker): prod, fix misc
This commit is contained in:
parent
fb9448ef71
commit
cfbf1bca84
1 changed files with 3 additions and 3 deletions
|
@ -416,17 +416,17 @@ FROM sintonia-webapp-build-common AS sintonia-webapp-production
|
||||||
USER root
|
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
|
||||||
|
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
|
USER $sintonia_user
|
||||||
WORKDIR /var/www/sintonia_webapp
|
WORKDIR /var/www/sintonia_webapp
|
||||||
|
|
||||||
RUN git clone --branch dev --single-branch https://git.congegni.net/Congegni/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 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
|
||||||
|
|
||||||
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 && \
|
RUN php artisan key:generate && \
|
||||||
php artisan migrate && \
|
php artisan migrate && \
|
||||||
php artisan db:seed && \
|
php artisan db:seed && \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue