-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeploy.Dockerfile
More file actions
47 lines (35 loc) · 1.43 KB
/
Copy pathdeploy.Dockerfile
File metadata and controls
47 lines (35 loc) · 1.43 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM python:3.12-slim
LABEL org.opencontainers.image.title="VTK MCP Gateway"
LABEL org.opencontainers.image.description="Production MCP gateway for VTK LLM tooling"
LABEL org.opencontainers.image.source="https://github.com/Kitware/vtk-mcp"
LABEL org.opencontainers.image.licenses="MIT"
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# VTK version to pre-cache at image build time
ARG VTK_VERSION=9.6.1
ENV VTK_MCP_VTK_VERSION=${VTK_VERSION}
RUN apt-get update && \
apt-get install -y --no-install-recommends git && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install uv for fast dependency installation
RUN pip install uv
# Install vtk-* sibling packages from GitHub (not on PyPI)
RUN uv pip install --system \
"git+https://github.com/vicentebolea/vtk-knowledge" \
"git+https://github.com/vicentebolea/vtk-validate"
# Install vtk-mcp with optional retrieval support
COPY . /app/
RUN uv pip install --system -e ".[retrieval]"
# Pre-download the vtk-knowledge JSONL artifact and vtk-index embedded
# Qdrant storage so the image is ready to serve without network access.
COPY scripts/prefetch_artifacts.py /tmp/prefetch_artifacts.py
RUN python /tmp/prefetch_artifacts.py
ENV VTK_MCP_TRANSPORT=http
ENV VTK_MCP_HTTP_HOST=0.0.0.0
ENV VTK_MCP_HTTP_PORT=8000
ENV VTK_MCP_ENABLE_VALIDATION=true
EXPOSE 8000
ENTRYPOINT ["python", "-m", "vtk_mcp", "--transport", "http"]