-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
38 lines (29 loc) · 1.13 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
# Dockerfile for Jenkins MCP Server
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
wget \
git \
&& rm -rf /var/lib/apt/lists/*
# Install ripgrep using package manager (handles all architectures)
RUN apt-get update && apt-get install -y ripgrep && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY requirements.txt ./
COPY pyproject.toml ./
COPY README.md ./
COPY jenkins_mcp_enterprise/ ./jenkins_mcp_enterprise/
# Install the package
RUN pip install -e .
# Copy configuration
COPY config/ ./config/
# Create cache directory
RUN mkdir -p /tmp/mcp-jenkins
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python3 -c "from jenkins_mcp_enterprise.multi_jenkins_manager import MultiJenkinsManager; m = MultiJenkinsManager(); print('OK')" || exit 1
# Run the MCP server in SSE mode for Claude Desktop
EXPOSE 8000
CMD ["python3", "-m", "jenkins_mcp_enterprise.server", "--transport", "sse", "--host", "0.0.0.0", "--port", "8000", "--config", "/app/config/mcp-config.yml"]