Dockerfile.rag_serverโข683 B
# Dockerfile for RAG MCP Server
FROM python:3.13
WORKDIR /app
# Install system dependencies required for building Python packages
RUN apt-get update && apt-get install -y \
gcc \
g++ \
make \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Copy dependency files
COPY pyproject.toml ./
# Install dependencies using uv
RUN uv pip install --system --no-cache -r pyproject.toml
# Copy the application code
COPY . .
# Expose the MCP server port
EXPOSE 9000
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
# Run the RAG MCP server
CMD ["python", "rag_mcp_server.py"]