File size: 234 Bytes
85c633d
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env sh
set -eu

# expand PORT in the shell (default 7860), then pass a pure number to uvicorn
PORT="${PORT:-7860}"

cd /app
echo "Starting Uvicorn on 0.0.0.0:${PORT}"
exec uvicorn app.main:app --host 0.0.0.0 --port "$PORT"