-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 922 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
rm -rf /var/lib/apt/lists/*
# Copy project files
COPY pyproject.toml README.md LICENSE ./
COPY quantumrag/ quantumrag/
# Install QuantumRAG with all dependencies
RUN pip install --no-cache-dir ".[all,api]"
# Create data directory
RUN mkdir -p /data/quantumrag
# Default config
ENV QUANTUMRAG_STORAGE__DATA_DIR=/data/quantumrag
ENV QUANTUMRAG_LANGUAGE=auto
# Expose API port
EXPOSE 8000
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python -c "import httpx; httpx.get('http://localhost:8000/v1/status').raise_for_status()" || exit 1
# Run demo by default (serve for production)
# docker run -e GOOGLE_API_KEY=... -p 8000:8000 quantumrag
CMD ["quantumrag", "demo", "--host", "0.0.0.0", "--port", "8000"]