FROM node:22-slim

# Python + libs for file processing
RUN apt-get update && apt-get install -y --no-install-recommends \
    python3 python3-pip python3-venv && \
    rm -rf /var/lib/apt/lists/*

RUN pip3 install --break-system-packages --no-cache-dir \
    openpyxl python-docx pymupdf pandas

# Claude Code CLI
RUN npm install -g @anthropic-ai/claude-code

# Worker user with same UID as host mcp-user (for .claude auth files)
RUN useradd -m -s /bin/bash -u 1002 worker
USER worker
WORKDIR /data

ENTRYPOINT ["claude"]
