feat: added php.ini for dev and prod in dockerfile
This commit is contained in:
parent
d2fc5b0efa
commit
8d94b43d76
12
Dockerfile
12
Dockerfile
|
@ -366,8 +366,9 @@ ENV sintonia_vite_port=${sintonia_vite_port}
|
||||||
USER root
|
USER root
|
||||||
RUN pecl install xdebug && \
|
RUN pecl install xdebug && \
|
||||||
docker-php-ext-enable xdebug && \
|
docker-php-ext-enable xdebug && \
|
||||||
echo 'xdebug.mode = develop,debug\nxdebug.client_host=host.docker.internal\nxdebug.start_with_request=yes' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
|
echo 'xdebug.mode = develop,debug\nxdebug.client_host=host.docker.internal\nxdebug.start_with_request=yes\nxdebug.discover_client_host=1' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
|
||||||
echo 'error_reporting=E_ALL' > /usr/local/etc/php/conf.d/error_reporting.ini
|
echo 'error_reporting=E_ALL' > /usr/local/etc/php/conf.d/error_reporting.ini
|
||||||
|
COPY ./dev/sintonia-webapp/php/php-ini-development /usr/local/etc/php/php.ini
|
||||||
USER $sintonia_user
|
USER $sintonia_user
|
||||||
|
|
||||||
WORKDIR /var/www/sintonia_webapp
|
WORKDIR /var/www/sintonia_webapp
|
||||||
|
@ -377,21 +378,22 @@ WORKDIR /var/www/sintonia_webapp
|
||||||
ENV sintonia_user=${sintonia_user}
|
ENV sintonia_user=${sintonia_user}
|
||||||
### Start server
|
### Start server
|
||||||
CMD git config --global --add safe.directory /var/www/sintonia_webapp && \
|
CMD git config --global --add safe.directory /var/www/sintonia_webapp && \
|
||||||
/home/$sintonia_user/composer install --no-progress --no-interaction --no-dev --no-autoloader && \
|
/home/$sintonia_user/composer install --no-progress --no-interaction --no-autoloader && \
|
||||||
/home/$sintonia_user/composer --no-cache dump-autoload --no-interaction --no-dev && \
|
/home/$sintonia_user/composer --no-cache dump-autoload --no-interaction && \
|
||||||
php artisan migrate && \
|
php artisan migrate && \
|
||||||
php artisan key:generate && \
|
php artisan key:generate && \
|
||||||
php artisan schedule:run >> /dev/null 2>&1 & \
|
php artisan schedule:run >> /dev/null 2>&1 && \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
npm i && \
|
npm i && \
|
||||||
npx vite --port $sintonia_vite_port --host & \
|
|
||||||
php artisan serve --host=0.0.0.0 --port=$sintonia_laravel_port & \
|
php artisan serve --host=0.0.0.0 --port=$sintonia_laravel_port & \
|
||||||
|
npx vite --port $sintonia_vite_port --host & \
|
||||||
sleep infinity
|
sleep infinity
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM sintonia-webapp-build-common AS sintonia-webapp-production
|
FROM sintonia-webapp-build-common AS sintonia-webapp-production
|
||||||
|
|
||||||
|
COPY ./docker/sintonia-webapp/php/php-ini-production /usr/local/etc/php/php.ini
|
||||||
RUN git clone https://git.congegni.net/sintonia_webapp && \
|
RUN git clone https://git.congegni.net/sintonia_webapp && \
|
||||||
cd sintonia_webapp && \
|
cd sintonia_webapp && \
|
||||||
php artisan ziggy:generate && \
|
php artisan ziggy:generate && \
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue