yau-plant-assistant/ingest/Dockerfile
Claude 34d2ccc576 Scaffold the WRPS plant operations assistant repository
Build spec and host brief carried in from C:\Claude and WRPS/02-env; the
plant model (equipment, tags, alarm bitmask, enums, unit conversions) is
derived from WRPS/04-plc/register-map.csv, WRPS/05-scada/modbus/scada-points.csv
and WRPS-CTL-003.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 13:56:32 +10:00

24 lines
733 B
Docker

# ai-ingest — on demand, not a service. Docling parse -> chunk -> embed -> pg-ai.
FROM python:3.12-slim
# Docling pulls layout models at first use; give it the system libs it needs.
RUN apt-get update \
&& apt-get install -y --no-install-recommends libgl1 libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --uid 10002 ingestuser
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --requirement requirements.txt
COPY . .
USER ingestuser
# /docs is /datadisk/ai-docs mounted read-only. Model caches land in the
# container's home, not on the root disk of the host.
ENV HF_HOME=/home/ingestuser/.cache/huggingface
ENV AI_DOCS_ROOT=/docs
ENTRYPOINT ["python", "ingest.py"]
CMD ["--help"]