joeshen commited on
Commit
799deed
·
verified ·
1 Parent(s): bac9ea6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -7
Dockerfile CHANGED
@@ -20,7 +20,7 @@ RUN apt-get update && \
20
  rm -rf /var/lib/apt/lists/*
21
 
22
  # Install OpenClaw globally
23
- RUN npm install -g openclaw
24
  RUN npm install -g clawhub
25
 
26
  #
@@ -28,6 +28,8 @@ RUN npm install -g playwright && playwright install chromium
28
 
29
  # 安装clawport
30
  #RUN npm install -g clawport-ui
 
 
31
 
32
  # 启动前禁用 device-pair
33
  #RUN openclaw devices approve --all
@@ -155,7 +157,7 @@ chmod 600 /root/.openclaw/agents/main/agent/auth-profiles.json 2>/dev/null || tr
155
  openclaw doctor --fix || true
156
 
157
  # 添加搜索引擎tavily-search (可能没有)
158
- clawhub install openclaw-tavily-search
159
  #tavily configure --api-key ${TAVILY_API_KEY}
160
 
161
  # 添加dingtalk
@@ -170,7 +172,7 @@ clawhub install openclaw-tavily-search
170
  #openclaw config set channels.dingtalk.messageType "markdown"
171
  #openclaw config set channels.dingtalk.enabled true
172
  # 2026-03-17 可流式回复
173
- openclaw plugins install @dingtalk-real-ai/dingtalk-connector@0.8.13
174
  openclaw config set gateway.http.endpoints.chatCompletions.enabled true
175
  openclaw config set channels.dingtalk-connector.clientId "dinglkmevdghzv6nzqyh"
176
  openclaw config set channels.dingtalk-connector.clientSecret "${DINGTALK_AIBOT_SECRET}"
@@ -213,16 +215,16 @@ echo "Starting OpenClaw gateway on port ${PORT}..."
213
 
214
  #exec openclaw start --port ${PORT}
215
  #exec openclaw agent run --name main
216
- #exec openclaw gateway run --port ${PORT}
217
  #clawport dev --port 3000 &
218
- openclaw gateway run --port ${PORT} &
219
  #openclaw devices list &
220
  #sleep 30 # 确保 gateway 已启动
221
  #openclaw devices approve --all || true
222
  #openclaw dashboard --no-open &
223
  #clawport dev --port 3000 &
224
- curl -fsSL https://raw.githubusercontent.com/qingchencloud/clawpanel/main/scripts/linux-deploy.sh | bash &
225
- wait -n
226
 
227
  EOF
228
 
 
20
  rm -rf /var/lib/apt/lists/*
21
 
22
  # Install OpenClaw globally
23
+ RUN npm install -g openclaw@2026.4.12
24
  RUN npm install -g clawhub
25
 
26
  #
 
28
 
29
  # 安装clawport
30
  #RUN npm install -g clawport-ui
31
+ RUN curl -fsSL https://raw.githubusercontent.com/qingchencloud/clawpanel/main/scripts/linux-deploy.sh | bash
32
+ RUN openclaw plugins install @dingtalk-real-ai/dingtalk-connector@0.8.13
33
 
34
  # 启动前禁用 device-pair
35
  #RUN openclaw devices approve --all
 
157
  openclaw doctor --fix || true
158
 
159
  # 添加搜索引擎tavily-search (可能没有)
160
+ #clawhub install openclaw-tavily-search
161
  #tavily configure --api-key ${TAVILY_API_KEY}
162
 
163
  # 添加dingtalk
 
172
  #openclaw config set channels.dingtalk.messageType "markdown"
173
  #openclaw config set channels.dingtalk.enabled true
174
  # 2026-03-17 可流式回复
175
+ #openclaw plugins install @dingtalk-real-ai/dingtalk-connector@0.8.13
176
  openclaw config set gateway.http.endpoints.chatCompletions.enabled true
177
  openclaw config set channels.dingtalk-connector.clientId "dinglkmevdghzv6nzqyh"
178
  openclaw config set channels.dingtalk-connector.clientSecret "${DINGTALK_AIBOT_SECRET}"
 
215
 
216
  #exec openclaw start --port ${PORT}
217
  #exec openclaw agent run --name main
218
+ exec openclaw gateway run --port ${PORT}
219
  #clawport dev --port 3000 &
220
+ #openclaw gateway run --port ${PORT} &
221
  #openclaw devices list &
222
  #sleep 30 # 确保 gateway 已启动
223
  #openclaw devices approve --all || true
224
  #openclaw dashboard --no-open &
225
  #clawport dev --port 3000 &
226
+ #curl -fsSL https://raw.githubusercontent.com/qingchencloud/clawpanel/main/scripts/linux-deploy.sh | bash &
227
+ #wait -n
228
 
229
  EOF
230