You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
825 B

FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Install ingestion worker deps first (agents depend on ingestion modules)
# When built from project root: docker build -f services/agents/Dockerfile .
COPY services/ingestion-worker/requirements.txt /tmp/ingestion-requirements.txt
RUN pip install --no-cache-dir -r /tmp/ingestion-requirements.txt
COPY services/agents/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy ingestion worker source (agents reuse parser, chunker, embedder, indexer, pipeline)
COPY services/ingestion-worker /app/ingestion-worker
COPY services/agents/ .
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app:/app/ingestion-worker
CMD ["python", "main.py"]

Powered by TurnKey Linux.