Promptaid-VIsion / entrypoint.sh
SCGR's picture
entrypoint & dockerfile
85c633d
raw
history blame contribute delete
234 Bytes
#!/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"