Update Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
CHANGED
|
@@ -17,6 +17,8 @@ RUN update-ca-certificates && \
|
|
| 17 |
git config --global http.sslVerify false && \
|
| 18 |
git config --global url."https://github.com/".insteadOf ssh://git@github.com/
|
| 19 |
|
|
|
|
|
|
|
| 20 |
# 4. 全局安装 OpenClaw
|
| 21 |
RUN npm install -g openclaw@2026.2.26 --unsafe-perm
|
| 22 |
|
|
@@ -105,6 +107,16 @@ cat > /root/.openclaw/openclaw.json <<EOF\n\
|
|
| 105 |
\"trustedProxies\": [\"0.0.0.0/0\", \"10.0.0.0/8\", \"172.16.0.0/12\", \"192.168.0.0/16\"],\n\
|
| 106 |
\"auth\": { \"mode\": \"token\", \"token\": \"\$OPENCLAW_GATEWAY_PASSWORD\" },\n\
|
| 107 |
\"controlUi\": { \"allowInsecureAuth\": true,\"dangerouslyDisableDeviceAuth\": true,\"allowedOrigins\":[\"http://localhost:7860\",\"https://xt8-claw.hf.space\"]}\n\
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
}\n\
|
| 109 |
}\n\
|
| 110 |
EOF\n\
|
|
|
|
| 17 |
git config --global http.sslVerify false && \
|
| 18 |
git config --global url."https://github.com/".insteadOf ssh://git@github.com/
|
| 19 |
|
| 20 |
+
RUN npm install -g openclaw-telegram-proxy
|
| 21 |
+
|
| 22 |
# 4. 全局安装 OpenClaw
|
| 23 |
RUN npm install -g openclaw@2026.2.26 --unsafe-perm
|
| 24 |
|
|
|
|
| 107 |
\"trustedProxies\": [\"0.0.0.0/0\", \"10.0.0.0/8\", \"172.16.0.0/12\", \"192.168.0.0/16\"],\n\
|
| 108 |
\"auth\": { \"mode\": \"token\", \"token\": \"\$OPENCLAW_GATEWAY_PASSWORD\" },\n\
|
| 109 |
\"controlUi\": { \"allowInsecureAuth\": true,\"dangerouslyDisableDeviceAuth\": true,\"allowedOrigins\":[\"http://localhost:7860\",\"https://xt8-claw.hf.space\"]}\n\
|
| 110 |
+
},\n\
|
| 111 |
+
\"plugins\": {\n\
|
| 112 |
+
\"entries\": {\n\
|
| 113 |
+
\"openclaw-telegram-proxy\": {\n\
|
| 114 |
+
\"enabled\": true,\n\
|
| 115 |
+
\"config\": {\n\
|
| 116 |
+
\"proxyUrl\": \"\$TELEGRAM_PRX\"\n\
|
| 117 |
+
}\n\
|
| 118 |
+
}\n\
|
| 119 |
+
}\n\
|
| 120 |
}\n\
|
| 121 |
}\n\
|
| 122 |
EOF\n\
|