Files
research-workbench/entrypoint.sh
T
Ken 8dfafcc63d feat: car-help web UI with browser view, search API, and buying guide
- FastAPI backend on port 8080 with noVNC proxy for same-origin iframe
- Split-panel UI: live browser (55%) + search/guide/saved tabs (45%)
- Car buying guide: target models, pre-purchase checklist, mechanics nearby,
  negotiation tips, budget breakdown
- Scoring/ranking engine for listings (Toyota Prius = highest)
- Docker container runs Xvfb + x11vnc + noVNC + FastAPI together
- Accessible at browser.ampbox.io via cloudflared tunnel
2026-05-25 20:34:16 +00:00

30 lines
629 B
Bash
Executable File

#!/bin/bash
set -e
export DISPLAY=:99
Xvfb :99 -screen 0 1280x720x24 -ac &
sleep 1
x11vnc -display :99 -forever -nopw -listen 0.0.0.0 -rfbport 5900 -shared 2>/dev/null &
sleep 1
websockify --web=/usr/share/novnc/ 6080 localhost:5900 &
sleep 1
echo "noVNC ready on :6080"
# Start FastAPI -- use uv run from /app
cd /app
uv run python -m uvicorn app:app --host 0.0.0.0 --port 8080 --log-level info &
sleep 2
echo "============================================="
echo " car-help UI: http://localhost:8080"
echo "============================================="
if [ $# -eq 0 ]; then
tail -f /dev/null
else
exec "$@"
fi