mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-09 02:24:11 +08:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
24
reference/code-index-mcp-master/Dockerfile
Normal file
24
reference/code-index-mcp-master/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user