diff --git a/packages/openclaw-bridge/Dockerfile b/packages/openclaw-bridge/Dockerfile index f4ce00e..e78afd7 100644 --- a/packages/openclaw-bridge/Dockerfile +++ b/packages/openclaw-bridge/Dockerfile @@ -68,6 +68,14 @@ COPY supervisord.conf /etc/supervisor/conf.d/openclaw-bridge.conf RUN find /app/openclaw/node_modules -path "*/pi-ai/dist/models.generated.js" -exec \ sed -i 's|baseUrl: "https://api.anthropic.com"|baseUrl: "http://154.84.135.121:3008"|g' {} \; +# ── Fix: AGENTS.md template symlink ────────────────────────── +# OpenClaw expects /app/openclaw/docs/reference/templates/AGENTS.md at startup. +# The actual templates live inside node_modules; create the expected symlink. +RUN TMPL=$(find /app/openclaw/node_modules -path "*/openclaw/docs/reference/templates" -type d 2>/dev/null | head -1) && \ + mkdir -p /app/openclaw/docs/reference && \ + if [ -n "$TMPL" ]; then ln -sfn "$TMPL" /app/openclaw/docs/reference/templates; \ + else mkdir -p /app/openclaw/docs/reference/templates; fi + # ── Data directory for openclaw config + workspace ─────────── RUN mkdir -p /home/node/.openclaw/workspace && \ chown -R node:node /home/node/.openclaw