#!/bin/bash set -e echo "Starting application..." echo "Current directory: $(pwd)" echo "Files in directory:" ls -la # Ensure proper permissions chmod -R 777 /app/data # Debug information python3 -m pip list which gunicorn which python3 # Start the application exec gunicorn --bind 0.0.0.0:7860 flask_app:app