From 0dff8313542a2162243abd5dccd0b4476bdfda4c Mon Sep 17 00:00:00 2001 From: Ojus Save Date: Sun, 25 Jan 2026 23:55:18 -0800 Subject: [PATCH] fix(render): use dockerCommand in render.yaml instead of modifying Dockerfile - Revert Dockerfile to generic CMD for compatibility with other platforms - Add dockerCommand to render.yaml to run gateway with proper flags - Use CLAWDBOT_GATEWAY_PASSWORD env var for password auth - Remove healthCheckPath (gateway uses WebSocket, not HTTP health) --- Dockerfile | 4 +--- render.yaml | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index f4038d5fb..a33f0077d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,4 @@ RUN pnpm ui:build ENV NODE_ENV=production -# Run the gateway with settings suitable for Render deployment -# Password auth allows browser-based login via SETUP_PASSWORD env var -CMD ["node", "dist/index.js", "gateway", "--port", "8080", "--bind", "lan", "--auth", "password", "--allow-unconfigured"] +CMD ["node", "dist/index.js"] diff --git a/render.yaml b/render.yaml index 01923a8f6..85dcbe51b 100644 --- a/render.yaml +++ b/render.yaml @@ -3,18 +3,16 @@ services: name: clawdbot runtime: docker plan: starter - healthCheckPath: /health + dockerCommand: node dist/index.js gateway --port 8080 --bind lan --auth password --allow-unconfigured envVars: - key: PORT value: "8080" - - key: SETUP_PASSWORD + - key: CLAWDBOT_GATEWAY_PASSWORD sync: false - key: CLAWDBOT_STATE_DIR value: /data/.clawdbot - key: CLAWDBOT_WORKSPACE_DIR value: /data/workspace - - key: CLAWDBOT_GATEWAY_TOKEN - generateValue: true disk: name: clawdbot-data mountPath: /data