#!/bin/bash set -e echo "[+] Starting Laravel..." if [ ! -f .env ]; then cp .env.example .env fi if [ ! -f vendor/autoload.php ]; then echo "[ERROR] vendor missing - rebuild image" exit 1 fi if ! grep -q "APP_KEY=base64" .env; then echo "[+] Generating APP KEY" php artisan key:generate --force fi echo "[+] Starting PHP-FPM" exec php-fpm