forked from Context-Engine-AI/Context-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.mcp-indexer
More file actions
26 lines (19 loc) · 881 Bytes
/
Dockerfile.mcp-indexer
File metadata and controls
26 lines (19 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Companion MCP server that exposes indexing/pruning/list tools over SSE
# Reuse the same deps as the indexer image so we can call the scripts directly.
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
WORK_ROOTS="/work,/app"
# OS deps (git for history if we extend later)
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Python deps: reuse shared requirements (includes FastMCP + OpenAI SDK)
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
# Bake scripts into the image so entrypoints don't rely on /work
COPY scripts /app/scripts
# Expose SSE port for this companion server
EXPOSE 8001
WORKDIR /work
# Default command runs the companion MCP server
CMD ["python", "/app/scripts/mcp_indexer_server.py"]