fix docker

This commit is contained in:
Saeed Vaziry
2025-06-19 14:23:33 +02:00
parent 49c29de962
commit 798542673f
2 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,6 @@ RUN composer install --no-dev
RUN chown -R www-data:www-data /var/www/html \ RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html/storage /var/www/html/bootstrap/cache \ && chmod -R 755 /var/www/html/storage /var/www/html/bootstrap/cache \
# install plugins
RUN php /var/www/html/artisan plugins:install https://github.com/vitodeploy/laravel-octane-plugin
# webserver # webserver
RUN rm /etc/nginx/sites-available/default RUN rm /etc/nginx/sites-available/default
RUN rm /etc/nginx/sites-enabled/default RUN rm /etc/nginx/sites-enabled/default

View File

@ -50,6 +50,9 @@ if [ ! -f "$INIT_FLAG" ]; then
# create sqlite database # create sqlite database
touch /var/www/html/storage/database.sqlite touch /var/www/html/storage/database.sqlite
# install default plugins
php /var/www/html/artisan plugins:install https://github.com/vitodeploy/laravel-octane-plugin
# create the flag file to indicate completion of initialization tasks # create the flag file to indicate completion of initialization tasks
touch "$INIT_FLAG" touch "$INIT_FLAG"
fi fi