| set -euo pipefail | |
| # Auto-create venv and install deps if missing | |
| if [ ! -d .venv ]; then | |
| echo "Creating virtual environment..." | |
| uv venv | |
| uv pip install -r requirements.txt | |
| fi | |
| # Activate venv (idempotent in subshell) | |
| source .venv/bin/activate | |
| exec uvicorn server:app --host 0.0.0.0 --port 9999 |