- Changed network subnet from 172.24.0.0/24 (used by xpltd_docs) to 172.32.0.0/24 - Added chrysopedia-qdrant (qdrant/qdrant:v1.13.2) with healthcheck - Added chrysopedia-ollama for embedding model (nomic-embed-text) - Web UI exposed on 0.0.0.0:8096 (XPLTD port-suffix convention) - API internal-only (via nginx proxy) - Added HEALTHCHECK to Dockerfile.api - Updated .env.example with FYN DGX LLM endpoint
24 lines
607 B
Text
24 lines
607 B
Text
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# System deps
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc libpq-dev curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Python deps (cached layer)
|
|
COPY backend/requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Application code
|
|
COPY backend/ /app/
|
|
COPY prompts/ /prompts/
|
|
COPY config/ /config/
|
|
|
|
EXPOSE 8000
|
|
|
|
HEALTHCHECK --interval=15s --timeout=5s --retries=3 --start-period=10s \
|
|
CMD curl -f http://localhost:8000/health || exit 1
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|