File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
- # 使用輕量 Python 映像
1
+ # Use lightweight Python image
2
2
FROM python:3.11-slim
3
3
4
- # 安裝 git (用於代碼分析 )
4
+ # Install git (for code analysis )
5
5
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
6
6
7
- # 設置工作目錄
7
+ # Set working directory
8
8
WORKDIR /app
9
9
10
- # 複製依賴清單和安裝依賴
10
+ # Copy dependency list and install dependencies
11
11
COPY requirements.txt .
12
12
RUN pip install --no-cache-dir -r requirements.txt
13
13
14
- # 複製程式碼
14
+ # Copy code
15
15
COPY . .
16
16
17
- # 設置 Python 路徑
17
+ # Set Python path
18
18
ENV PYTHONPATH="${PYTHONPATH}:/app:/app/src"
19
19
20
- # 不需要預設的項目目錄掛載點,用戶將顯式設置項目路徑
20
+ # No default project directory mount point needed, user will explicitly set project path
21
21
22
- # 運行 MCP 工具
22
+ # Run MCP tool
23
+ # MCP server uses stdio mode by default
23
24
ENTRYPOINT ["python" , "-m" , "code_index_mcp.server" ]
You can’t perform that action at this time.
0 commit comments