Graph_RAG / Dockerfile
Aigenthix's picture
Update Dockerfile
1d1177a 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 and install dependencies
COPY requirements_hf.txt .
RUN pip install --no-cache-dir -r requirements_hf.txt
# Copy application code
COPY app_docker_optimized.py .
COPY backend/ ./backend/
# Create data directories
RUN mkdir -p data/uploads data/chroma_data
# Expose port
EXPOSE 7860
# Run application
CMD ["python", "app_docker_optimized.py"]