Nihal2000's picture
Initial deployment of AI Digital Library Assistant
86aa5e4
raw
history blame
674 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
ca-certificates \
tesseract-ocr \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create data directories
RUN mkdir -p /data/vector_store /data/documents /data/podcasts
# Expose port (HuggingFace Spaces uses 7860)
EXPOSE 7860
# Set environment variables
ENV GRADIO_SERVER_NAME="0.0.0.0"
ENV GRADIO_SERVER_PORT=7860
# Run the MCP server
CMD ["python", "mcp_server.py"]