Add production Dockerfile (php-fpm + nginx) for Coolify

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-14 00:03:55 +03:00
co-authored by Claude Opus 4.8
parent a63515cfc6
commit 3f602c61ef
3 changed files with 86 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/command/with-contenv bash
# Runs on every container start (after DB/Redis are reachable on the Coolify network).
set -e
cd /var/www/html
# Storage symlink (idempotent)
php artisan storage:link 2>/dev/null || true
# Run pending migrations
php artisan migrate --force --no-interaction || true
# Cache config/routes/views for production speed
php artisan config:cache
php artisan route:cache
php artisan view:cache