superxu520 commited on
Commit
b9aaa01
·
verified ·
1 Parent(s): 62a2ca4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -49,5 +49,5 @@ ENV NODE_ENV=production
49
  ENV PORT=7860
50
 
51
  # 启动应用程序
52
- # 显式映射 PORT 到 OpenClaw 使用的 OPENCLAW_GATEWAY_PORT
53
- CMD ["sh", "-c", "export OPENCLAW_GATEWAY_PORT=${PORT:-7860}; node scripts/run-node.mjs"]
 
49
  ENV PORT=7860
50
 
51
  # 启动应用程序
52
+ # 显式映射 PORT 到 OpenClaw 使用的 OPENCLAW_GATEWAY_PORT,并加上 gateway 命令启动服务
53
+ CMD ["sh", "-c", "export OPENCLAW_GATEWAY_PORT=${PORT:-7860}; node scripts/run-node.mjs gateway --port ${PORT:-7860} --force"]