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)
This commit is contained in:
Ojus Save 2026-01-25 23:55:18 -08:00
parent bc18813316
commit 0dff831354
2 changed files with 3 additions and 7 deletions

View File

@ -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"]

View File

@ -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