dscdls commited on
Commit
c65760f
·
verified ·
1 Parent(s): b600148

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -24,4 +24,9 @@ ENV HOST=0.0.0.0
24
 
25
  EXPOSE 7860
26
  # 使用 --allow-unconfigured 强行启动,并设置模式为 local
27
- CMD ["node", "dist/index.js", "gateway", "run", "--port", "7860", "--allow-unconfigured", "--gateway.mode=local"]
 
 
 
 
 
 
24
 
25
  EXPOSE 7860
26
  # 使用 --allow-unconfigured 强行启动,并设置模式为 local
27
+ # 通过环境变量注入配置,通常这种方式比命令行参数更稳
28
+ ENV OPENCLAW_GATEWAY_MODE=local
29
+ ENV MOLT_GATEWAY_MODE=local
30
+
31
+ # 启动命令只保留核心开关
32
+ CMD ["node", "dist/index.js", "gateway", "run", "--port", "7860", "--allow-unconfigured"]