Graph_RAG / backend /Dockerfile
Aigenthix's picture
Upload 2585 files
711f785 verified
Raw
History Blame Contribute Delete
524 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY app/ app/
# Create necessary directories
RUN mkdir -p data/uploads data/chroma_data logs
# Expose port
EXPOSE 8000
# Run application
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]