Ship decision_template.docx into the Docker image
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 8s
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:
@@ -9,6 +9,8 @@ web/static/
|
|||||||
web/__pycache__/
|
web/__pycache__/
|
||||||
scripts/
|
scripts/
|
||||||
skills/
|
skills/
|
||||||
|
!skills/docx/
|
||||||
|
!skills/docx/decision_template.docx
|
||||||
docs/
|
docs/
|
||||||
legacy/
|
legacy/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|||||||
@@ -57,6 +57,10 @@ COPY --from=builder /app/.next/static ./.next/static
|
|||||||
COPY web/ ./web/
|
COPY web/ ./web/
|
||||||
COPY mcp-server/src/ ./mcp-server/src/
|
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)
|
# Make mcp-server source available to web/app.py (it does sys.path.insert for legal_mcp)
|
||||||
ENV PYTHONPATH=/app/mcp-server/src
|
ENV PYTHONPATH=/app/mcp-server/src
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user