#!/bin/sh # Start FastAPI backend + Next.js frontend in the same container. # Uvicorn runs in the background; Node.js runs in the foreground # so that Docker gets its exit signal from the primary process. set -e echo "Starting FastAPI backend on :8000 ..." uvicorn web.app:app --host 127.0.0.1 --port 8000 --workers 1 & UVICORN_PID=$! echo "Starting Next.js frontend on :3000 ..." exec node server.js