Simford.Dong commited on
Commit ·
d3cd7f6
1
Parent(s): 893ce54
fix: fix final Dockerfile parse errors in startup script
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -223,7 +223,7 @@ python3 /usr/local/bin/sync.py restore\n\
|
|
| 223 |
# 设置 CLI 认证 Token\n\
|
| 224 |
export OPENCLAW_GATEWAY_TOKEN=\"\$GW_PASS\"\n\
|
| 225 |
\n\
|
| 226 |
-
# 生成 openclaw.json 配置文件 (使用 Python 确保 JSON 格式 100% 正确)
|
| 227 |
python3 -c "\n\
|
| 228 |
import os, json\n\
|
| 229 |
proxies_env = os.getenv('OPENCLAW_GATEWAY_TRUSTED_PROXIES', '10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.64.0.0/10')\n\
|
|
@@ -280,7 +280,7 @@ config = {\n\
|
|
| 280 |
}\n\
|
| 281 |
with open('/root/.openclaw/openclaw.json', 'w') as f:\n\
|
| 282 |
json.dump(config, f, indent=2)\n\
|
| 283 |
-
"
|
| 284 |
\n\
|
| 285 |
# 修复权限建议\n\
|
| 286 |
chmod 600 /root/.openclaw/openclaw.json\n\
|
|
|
|
| 223 |
# 设置 CLI 认证 Token\n\
|
| 224 |
export OPENCLAW_GATEWAY_TOKEN=\"\$GW_PASS\"\n\
|
| 225 |
\n\
|
| 226 |
+
# 生成 openclaw.json 配置文件 (使用 Python 确保 JSON 格式 100% 正确)\
|
| 227 |
python3 -c "\n\
|
| 228 |
import os, json\n\
|
| 229 |
proxies_env = os.getenv('OPENCLAW_GATEWAY_TRUSTED_PROXIES', '10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.64.0.0/10')\n\
|
|
|
|
| 280 |
}\n\
|
| 281 |
with open('/root/.openclaw/openclaw.json', 'w') as f:\n\
|
| 282 |
json.dump(config, f, indent=2)\n\
|
| 283 |
+
"\
|
| 284 |
\n\
|
| 285 |
# 修复权限建议\n\
|
| 286 |
chmod 600 /root/.openclaw/openclaw.json\n\
|