#!/bin/bash # /my-new-laravel-app/entrypoint.sh # Install/update dependencies every time the container starts echo "Running composer install..." composer install --no-interaction --prefer-dist --optimize-autoloader echo "Running npm install..." npm install # Run the Vite development server in the background echo "Starting Vite dev server (npm run dev)..." npm run dev & # Start the Laravel development server in the foreground echo "Starting Laravel dev server (php artisan serve)..." php artisan serve --host=0.0.0.0 --port=8000