Choose a Docker shape
Docker fit
Example src/index.ts
Use a listener shape like this in either Docker setup:
Single-project Dockerfile
This is the simplest Docker path for a normal Redop project.- your Redop app lives in one project directory
- you do not need a compiled binary
- you want the clearest Docker setup
Monorepo production Dockerfile
Use this when your Redop app lives inside a workspace and you want a slimmer runtime image.Tradeoffs
Listener expectations
No matter which Docker shape you use:- bind to
0.0.0.0 - read
PORT - expose
/mcp - do not assume
/mcp/healthunless you enabledhealth
Local smoke test
Build the image:- the container starts without crashing
- the app listens on
0.0.0.0:3000inside the container /mcpreturns a valid initialize response