Simford.Dong commited on
Commit ·
a630075
1
Parent(s): 291d487
fix: move doctor fix and add more aggressive feishu bypass
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -40,6 +40,9 @@ if [ -z "$ANTHROPIC_AUTH_TOKEN" ]; then\n\
|
|
| 40 |
exit 1\n\
|
| 41 |
fi\n\
|
| 42 |
\n\
|
|
|
|
|
|
|
|
|
|
| 43 |
# Always ensure we have a clean config with required values\n\
|
| 44 |
cat > "$OPENCLAW_HOME/openclaw.json" << EOF\n\
|
| 45 |
{\n\
|
|
@@ -77,6 +80,7 @@ cat > "$OPENCLAW_HOME/openclaw.json" << EOF\n\
|
|
| 77 |
"dmPolicy": "open",\n\
|
| 78 |
"groupPolicy": "open",\n\
|
| 79 |
"requireMention": false,\n\
|
|
|
|
| 80 |
"autoPairing": {\n\
|
| 81 |
"ou_ab4e6560a7d593557f50a23f0e5ae137": "main"\n\
|
| 82 |
}\n\
|
|
@@ -103,11 +107,11 @@ EOF\n\
|
|
| 103 |
# Debug: show config\n\
|
| 104 |
cat "$OPENCLAW_HOME/openclaw.json"\n\
|
| 105 |
\n\
|
| 106 |
-
#
|
| 107 |
-
openclaw
|
| 108 |
\n\
|
| 109 |
# Start OpenClaw gateway\n\
|
| 110 |
echo "Starting OpenClaw gateway on port 7860..."\n\
|
| 111 |
exec openclaw gateway run --port 7860 --allow-unconfigured\n' > /usr/local/bin/start-openclaw && chmod +x /usr/local/bin/start-openclaw
|
| 112 |
|
| 113 |
-
CMD ["/usr/local/bin/start-openclaw"]
|
|
|
|
| 40 |
exit 1\n\
|
| 41 |
fi\n\
|
| 42 |
\n\
|
| 43 |
+
# Run doctor --fix BEFORE writing our custom config to ensure it doesn'\''t revert our changes\n\
|
| 44 |
+
openclaw doctor --fix\n\
|
| 45 |
+
\n\
|
| 46 |
# Always ensure we have a clean config with required values\n\
|
| 47 |
cat > "$OPENCLAW_HOME/openclaw.json" << EOF\n\
|
| 48 |
{\n\
|
|
|
|
| 80 |
"dmPolicy": "open",\n\
|
| 81 |
"groupPolicy": "open",\n\
|
| 82 |
"requireMention": false,\n\
|
| 83 |
+
"allowlist": ["ou_ab4e6560a7d593557f50a23f0e5ae137"],\n\
|
| 84 |
"autoPairing": {\n\
|
| 85 |
"ou_ab4e6560a7d593557f50a23f0e5ae137": "main"\n\
|
| 86 |
}\n\
|
|
|
|
| 107 |
# Debug: show config\n\
|
| 108 |
cat "$OPENCLAW_HOME/openclaw.json"\n\
|
| 109 |
\n\
|
| 110 |
+
# Background task to automatically approve pairing if it still asks\n\
|
| 111 |
+
(sleep 30 && openclaw pairing approve feishu PNF2MUCT; sleep 30 && openclaw pairing approve feishu PNF2MUCT) &\n\
|
| 112 |
\n\
|
| 113 |
# Start OpenClaw gateway\n\
|
| 114 |
echo "Starting OpenClaw gateway on port 7860..."\n\
|
| 115 |
exec openclaw gateway run --port 7860 --allow-unconfigured\n' > /usr/local/bin/start-openclaw && chmod +x /usr/local/bin/start-openclaw
|
| 116 |
|
| 117 |
+
CMD ["/usr/local/bin/start-openclaw"]
|