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:
parent
bc18813316
commit
0dff831354
@ -32,6 +32,4 @@ RUN pnpm ui:build
|
|||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
# Run the gateway with settings suitable for Render deployment
|
CMD ["node", "dist/index.js"]
|
||||||
# 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"]
|
|
||||||
|
|||||||
@ -3,18 +3,16 @@ services:
|
|||||||
name: clawdbot
|
name: clawdbot
|
||||||
runtime: docker
|
runtime: docker
|
||||||
plan: starter
|
plan: starter
|
||||||
healthCheckPath: /health
|
dockerCommand: node dist/index.js gateway --port 8080 --bind lan --auth password --allow-unconfigured
|
||||||
envVars:
|
envVars:
|
||||||
- key: PORT
|
- key: PORT
|
||||||
value: "8080"
|
value: "8080"
|
||||||
- key: SETUP_PASSWORD
|
- key: CLAWDBOT_GATEWAY_PASSWORD
|
||||||
sync: false
|
sync: false
|
||||||
- key: CLAWDBOT_STATE_DIR
|
- key: CLAWDBOT_STATE_DIR
|
||||||
value: /data/.clawdbot
|
value: /data/.clawdbot
|
||||||
- key: CLAWDBOT_WORKSPACE_DIR
|
- key: CLAWDBOT_WORKSPACE_DIR
|
||||||
value: /data/workspace
|
value: /data/workspace
|
||||||
- key: CLAWDBOT_GATEWAY_TOKEN
|
|
||||||
generateValue: true
|
|
||||||
disk:
|
disk:
|
||||||
name: clawdbot-data
|
name: clawdbot-data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user