Add entrypoint script and update Dockerfile for proper initialization; modify Traefik labels for production environment
All checks were successful
Deploy Production (admin.merchbay.app) / deploy (push) Successful in 2m42s

This commit is contained in:
Frank John Begornia
2025-12-21 05:06:11 +08:00
parent 4ce000e95b
commit 678a8842f4
3 changed files with 33 additions and 8 deletions

18
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
# Create storage directory structure if it doesn't exist
mkdir -p storage/framework/views
mkdir -p storage/framework/cache
mkdir -p storage/framework/sessions
mkdir -p storage/logs
mkdir -p storage/app/public
mkdir -p bootstrap/cache
mkdir -p public/uploads
# Set proper permissions
chown -R www-data:www-data storage bootstrap/cache public/uploads
chmod -R 775 storage bootstrap/cache public/uploads
# Execute the main command
exec "$@"