mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
25 lines
611 B
Docker
25 lines
611 B
Docker
# 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"]
|