Skip to content

Dockerfile CMD missing gateway subcommand - container exits immediately on Render #5685

@kaizen403

Description

@kaizen403

Description

The Dockerfile's CMD doesn't start the gateway server. The container prints CLI help and exits with code 1.

Current Behavior

CMD ["node", "dist/index.js"]

This runs the CLI without arguments, which prints help and exits:

🦞 OpenClaw 2026.1.30 (unknown) — Your inbox, your infra, your rules.

Usage: openclaw [options] [command]
...
==> Exited with status 1

Expected Behavior

The CMD should start the gateway:

CMD ["node", "dist/index.js", "gateway"]

Environment

  • Platform: Render (using the render.yaml Blueprint)
  • Deploy method: Blueprint sync from main branch

Steps to Reproduce

  1. Deploy to Render using the "Deploy to Render" button
  2. Watch the deploy fail with health check timeout
  3. Check logs - container prints CLI help and exits

Suggested Fix

- CMD ["node", "dist/index.js"]
+ CMD ["node", "dist/index.js", "gateway"]

The render.yaml doesn't specify a dockerCommand override, so it relies on the Dockerfile's CMD.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions