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
More file actions
23 lines (17 loc) · 743 Bytes
/
Dockerfile.mcp
File metadata and controls
23 lines (17 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Minimal image to run the Qdrant MCP server with SSE transport
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
WORK_ROOTS="/work,/app" \
HF_HOME=/tmp/cache \
TRANSFORMERS_CACHE=/tmp/cache
# Install latest FastMCP with Streamable HTTP (RMCP) support + deps
RUN pip install --no-cache-dir --upgrade mcp fastmcp qdrant-client fastembed
# Create cache directory with proper permissions
RUN mkdir -p /tmp/cache && chmod 755 /tmp/cache
# Bake scripts into image so server can run even when /work points elsewhere
COPY scripts /app/scripts
# Expose SSE port
EXPOSE 8000
# Default command: run the server with SSE transport (env provides host/port)
CMD ["python", "/app/scripts/mcp_memory_server.py"]