Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 11 |
RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages
|
| 12 |
|
| 13 |
# 3. 安装 OpenClaw 和 PM2
|
| 14 |
-
ARG OPENCLAW_VERSION=2026.2.
|
| 15 |
RUN npm install -g openclaw@${OPENCLAW_VERSION} pm2 --registry=https://registry.npmjs.org/ --unsafe-perm=true --foreground-scripts && npm cache clean --force
|
| 16 |
|
| 17 |
# 4. 设置环境变量
|
|
@@ -104,7 +104,7 @@ cat > /root/.openclaw/openclaw.json <<EOF\n\
|
|
| 104 |
\"gateway\": {\n\
|
| 105 |
\"mode\": \"local\", \"bind\": \"lan\", \"port\": \$PORT,\n\
|
| 106 |
\"auth\": { \"mode\": \"token\", \"token\": \"\$OPENCLAW_GATEWAY_PASSWORD\" },\n\
|
| 107 |
-
\"controlUi\": {
|
| 108 |
}\n\
|
| 109 |
}\n\
|
| 110 |
EOF\n\
|
|
|
|
| 11 |
RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages
|
| 12 |
|
| 13 |
# 3. 安装 OpenClaw 和 PM2
|
| 14 |
+
ARG OPENCLAW_VERSION=2026.2.26
|
| 15 |
RUN npm install -g openclaw@${OPENCLAW_VERSION} pm2 --registry=https://registry.npmjs.org/ --unsafe-perm=true --foreground-scripts && npm cache clean --force
|
| 16 |
|
| 17 |
# 4. 设置环境变量
|
|
|
|
| 104 |
\"gateway\": {\n\
|
| 105 |
\"mode\": \"local\", \"bind\": \"lan\", \"port\": \$PORT,\n\
|
| 106 |
\"auth\": { \"mode\": \"token\", \"token\": \"\$OPENCLAW_GATEWAY_PASSWORD\" },\n\
|
| 107 |
+
\"controlUi\": {\"enabled\":true,\"allowInsecureAuth\":true,\"dangerouslyDisableDeviceAuth\":true,\"dangerouslyAllowHostHeaderOriginFallback\":true}\n\
|
| 108 |
}\n\
|
| 109 |
}\n\
|
| 110 |
EOF\n\
|