#!/bin/bash set -euo pipefail echo "==== start.sh: container startup ====" date echo "Working dir: $(pwd)" echo "User: $(whoami)" echo "PORT=${PORT:-not-set}" echo "Listing /app contents:" ls -la /app || true echo "Contents of app directory (top):" ls -la . || true echo "Starting Streamlit with port ${PORT:-7860}" exec streamlit run app.py \ --server.address=0.0.0.0 \ --server.port=${PORT:-7860} \ --server.headless=true \ --server.enableCORS=false \ --server.enableXsrfProtection=false