fix(bridge): bake AGENTS.md symlink into Docker image
Add RUN step to create /app/openclaw/docs/reference/templates symlink at image build time. Previously only done as post-deploy SSH step, leaving re-created containers broken until next full redeploy. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
865b246345
commit
f5f051bcab
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue