diff --git a/docker/php/entrypoint.sh b/docker/php/entrypoint.sh index 4925580..0eccacf 100644 --- a/docker/php/entrypoint.sh +++ b/docker/php/entrypoint.sh @@ -7,8 +7,11 @@ echo "[+] Starting Initialization Process..." # ۱. نصب وابستگی‌های PHP با نادیده گرفتن پکیج‌های Dev echo "[+] Installing PHP dependencies via Composer..." -composer install || true - +composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev +if [ ! -d vendor ]; then + echo "[!] vendor not found, stopping" + exit 1 +fi # ۲. پیکربندی محیط (Environment) لاراول if [ ! -f .env ]; then echo "[+] .env file not found. Creating from .env.example..."