-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 796 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 796 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
27
28
29
# Dockerfile for Temporal MCP Server (stdio-based)
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
# Upgrade pip and wheel to fix security vulnerabilities
# Force wheel upgrade before installing other packages
RUN pip install --no-cache-dir --upgrade "pip>=26.0" "wheel>=0.46.2" "setuptools>=75.0"
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY server.py .
COPY pyproject.toml .
COPY temporal_mcp/ ./temporal_mcp/
# Default cert directory for mTLS (mount certs here at runtime)
RUN mkdir -p /certs
# Run via stdio - this is the MCP standard
CMD ["python", "-u", "server.py"]