Refactor code structure for improved readability and maintainability

This commit is contained in:
catlog22
2025-12-12 11:19:58 +08:00
parent 77de8d857b
commit b74a90b416
169 changed files with 29206 additions and 369 deletions

View File

@@ -0,0 +1,24 @@
# Use lightweight Python image
FROM python:3.11-slim
# Install git (for code analysis)
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy dependency list and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy code
COPY . .
# Set Python path
ENV PYTHONPATH="${PYTHONPATH}:/app:/app/src"
# No default project directory mount point needed, user will explicitly set project path
# Run MCP tool
# MCP server uses stdio mode by default
ENTRYPOINT ["python", "-m", "code_index_mcp.server"]