feat: update Docker configuration
Removed version specification from docker-compose.yml and added mysqli extension installation in Dockerfile.
This commit is contained in:
17
dockerfile-php-sql-alternative/entrypoint.sh
Executable file
17
dockerfile-php-sql-alternative/entrypoint.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user