lydgs commited on
Commit
0fed4e8
·
verified ·
1 Parent(s): ae6afde

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -54
Dockerfile CHANGED
@@ -131,60 +131,6 @@ else
131
  API_TYPE="openai-completions"
132
  fi
133
 
134
- # 写入 openclaw.json(显式禁用 telegram)
135
- cat > /root/.openclaw/openclaw.json <<EOF2
136
- {
137
- "models": {
138
- "providers": {
139
- "$PROVIDER": {
140
- "baseUrl": "$BASE_URL_VAR",
141
- "apiKey": "$API_KEY_VAR",
142
- "api": "$API_TYPE",
143
- "models": [{ "id": "$MODEL_VAR", "name": "$MODEL_VAR", "contextWindow": 128000 }]
144
- }
145
- }
146
- },
147
- "agents": {
148
- "defaults": {
149
- "model": { "primary": "$PRIMARY_MODEL" },
150
- "imageModel": { "primary": "openai/gpt-4o-mini" },
151
- "tools": {
152
- "elevated": {
153
- "enabled": true,
154
- "allowFrom": {
155
- "openclaw-weixin": true
156
- }
157
- }
158
- }
159
- }
160
- },
161
- "gateway": {
162
- "mode": "local",
163
- "bind": "lan",
164
- "port": $PORT,
165
- "trustedProxies": ["0.0.0.0/0", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"],
166
- "auth": { "mode": "token", "token": "$OPENCLAW_GATEWAY_PASSWORD" },
167
- "controlUi": { "allowInsecureAuth": true, "allowedOrigins": ["*"] }
168
- },
169
- "plugins": { "allow": ["openclaw-weixin"] },
170
- "channels": {
171
- "openclaw-weixin": {
172
- "enabled": true,
173
- "dataDir": "/root/.openclaw/wechat-data",
174
- "autoLogin": true
175
- },
176
- "telegram": {
177
- "enabled": false
178
- }
179
- },
180
- "browser": {
181
- "enabled": true,
182
- "headless": true,
183
- "noSandbox": true,
184
- "defaultProfile": "openclaw"
185
- }
186
- }
187
- EOF2
188
 
189
  echo "=== openclaw.json content ==="
190
  cat /root/.openclaw/openclaw.json
 
131
  API_TYPE="openai-completions"
132
  fi
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
 
135
  echo "=== openclaw.json content ==="
136
  cat /root/.openclaw/openclaw.json