Files
docker-compose-builds/dockerfile-php-sql-original/entrypoint.sh
Williams C 0cd48261f4 feat: update Docker configuration
Removed version specification from docker-compose.yml and added mysqli extension installation in Dockerfile.
2025-09-26 01:01:44 -03:00

25 lines
786 B
Bash

#!/bin/bash
# entrypoint.sh
# This script is executed when the container starts.
# It runs both the PHP artisan server and the Node.js Vite server.
echo "Starting development servers..."
# Run NPM install just in case new packages were added
echo "Running npm install..."
npm install
# Run composer install just in case
echo "Running composer install..."
composer install
# Run the Vite development server in the background
# The '&' symbol sends the process to the background
echo "Starting Vite dev server (npm run dev)..."
npm run dev &
# Start the Laravel development server in the foreground
# The --host=0.0.0.0 is crucial to make it accessible from outside the container
echo "Starting Laravel dev server (php artisan serve)..."
php artisan serve --host=0.0.0.0 --port=8000