#!/bin/sh # Starts render-service/ (whiteboard frame mode's Excalidraw-to-PNG # sidecar, see its own README) in the background, bound to 127.0.0.1 -- # reachable from this container's Python process, never from outside it. # Then execs uvicorn as the foreground/PID 1 process so it receives # Docker's stop signal directly. The backgrounded Node process has no # state worth flushing on shutdown -- fine for it to just die with the # container. node ./render-service/server.js & exec uvicorn app.main:app --host 0.0.0.0 --port 8420