Ship decision_template.docx into the Docker image
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 8s

The analysis DOCX exporter loads skills/docx/decision_template.docx at
runtime, but .dockerignore was excluding the entire skills/ tree and
Dockerfile didn't COPY it — so the deployed container returned
'Template not found at /app/skills/docx/decision_template.docx' on
every /export-docx request.

  .dockerignore  Re-include the one file we need at runtime.
  Dockerfile    COPY that single file into /app/skills/docx/.

Documentation and SKILL.md stay outside the image.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-16 19:09:52 +00:00
parent bfec8bdaa3
commit 36925c589b
2 changed files with 6 additions and 0 deletions

View File

@@ -57,6 +57,10 @@ COPY --from=builder /app/.next/static ./.next/static
COPY web/ ./web/
COPY mcp-server/src/ ./mcp-server/src/
# DOCX template used by analysis_docx_exporter — loaded at runtime by path
# (Path(__file__).resolve().parents[4] / "skills/docx/decision_template.docx")
COPY skills/docx/decision_template.docx ./skills/docx/decision_template.docx
# Make mcp-server source available to web/app.py (it does sys.path.insert for legal_mcp)
ENV PYTHONPATH=/app/mcp-server/src