Files
smeta-web/sandbox/Dockerfile
T
anorandClaude Opus 4.8 54c5de9760 feat: агентный путь (Docker sandbox) — паритет по форматам .xls/.doc/OCR
Паритет agent-пути с GLM: read_xlsx_sheet читает .xls через xlrd; в образ песочницы
добавлены catdoc (.doc), tesseract-ocr+rus (OCR PDF), xlrd/pytesseract/pillow (pip).
parse_gsfx_file/parse_arp_file уже доступны агенту (gge_tools/smeta_mcp монтируются).
Образ smeta-claude-sandbox пересобран. Real-тест: read_xlsx_sheet(.xls) в песочнице → 1926 строк.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-15 21:09:14 +10:00

24 lines
732 B
Docker

FROM node:22-slim
# Python + libs for file processing + smeta-railway deps
# catdoc — старые .doc (OLE2); tesseract-ocr + rus — OCR PDF-сканов
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 python3-pip python3-venv \
catdoc tesseract-ocr tesseract-ocr-rus && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install --break-system-packages --no-cache-dir \
openpyxl python-docx pymupdf pandas \
faiss-cpu pyyaml pydantic typer openai rank-bm25 \
xlrd pytesseract pillow
# Claude Code CLI
RUN npm install -g @anthropic-ai/claude-code
# Worker user with same UID as host mcp-user
RUN useradd -m -s /bin/bash -u 1002 worker
USER worker
WORKDIR /data
ENTRYPOINT ["claude"]