From 3ec4fe470e4d565135c7fe000a8e6104931aa6ce Mon Sep 17 00:00:00 2001 From: Crimson Date: Wed, 3 Jun 2026 04:47:03 +0500 Subject: [PATCH] Disable Composer scripts during Docker build --- Dockerfile | 3 ++- docker/entrypoint.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f8522ee..622204e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,7 +39,8 @@ COPY docker/php/php.ini $PHP_INI_DIR/conf.d/app.ini COPY . . COPY --from=frontend /app/public/build ./public/build -RUN composer install --no-dev --optimize-autoloader --no-interaction +RUN composer install --no-dev --prefer-dist --no-interaction --no-progress --no-scripts \ + && composer dump-autoload --optimize --no-scripts RUN chown -R www-data:www-data storage bootstrap/cache \ && chmod -R 775 storage bootstrap/cache diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 56b2991..acdfcb9 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -26,6 +26,7 @@ mkdir -p \ chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache chmod -R ug+rwX /var/www/html/storage /var/www/html/bootstrap/cache +php artisan package:discover --ansi || true php artisan migrate --force php artisan storage:link || true php artisan config:cache