quinnz commited on
Commit
3b624db
·
verified ·
1 Parent(s): 80a44d5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -2
Dockerfile CHANGED
@@ -181,10 +181,22 @@ openclaw doctor --fix || true
181
  # ---------------------------
182
  # Slack 自动 approve ,需要slack先发送消息,获得paring code
183
  # ---------------------------
184
- openclaw pairing approve slack H3CBFPEN
185
 
186
  # Start gateway foreground
187
- exec openclaw gateway run --port $PORT
 
 
 
 
 
 
 
 
 
 
 
 
188
  SHEOF
189
 
190
  RUN chmod +x /usr/local/bin/start-openclaw
 
181
  # ---------------------------
182
  # Slack 自动 approve ,需要slack先发送消息,获得paring code
183
  # ---------------------------
184
+ #openclaw pairing approve slack H3CBFPEN
185
 
186
  # Start gateway foreground
187
+ #exec openclaw gateway run --port $PORT
188
+ # 启动 Gateway 后台运行
189
+ openclaw gateway run --port $PORT &
190
+ GATEWAY_PID=$!
191
+
192
+ # 延迟几秒,保证 pairing code 注册
193
+ sleep 5
194
+
195
+ # 批准 pairing code
196
+ openclaw pairing approve slack H3CBFPEN || true
197
+
198
+ # 等待 Gateway 前台运行
199
+ wait $GATEWAY_PID
200
  SHEOF
201
 
202
  RUN chmod +x /usr/local/bin/start-openclaw