forked from redhat-community-ai-tools/jira-mcp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (34 loc) · 1.12 KB
/
Copy pathDockerfile
File metadata and controls
44 lines (34 loc) · 1.12 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
FROM python:3.11-slim
# Metadata
LABEL maintainer="rrasouli@redhat.com"
LABEL description="JIRA MCP Server - Model Context Protocol server for JIRA operations"
LABEL version="1.0.0"
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Install jira CLI
RUN curl -L https://github.com/ankitpokhrel/jira-cli/releases/download/v1.4.0/jira_1.4.0_linux_x86_64.tar.gz | tar xz && \
mv bin/jira /usr/local/bin/ && \
chmod +x /usr/local/bin/jira && \
rm -rf bin/
# Copy application files
COPY server.py /app/
COPY pyproject.toml /app/
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir mcp
# Make server executable
RUN chmod +x server.py
# Environment variables (override at runtime)
ENV JIRA_URL=""
ENV JIRA_DEFAULT_PROJECT=""
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD python -c "import sys; sys.exit(0)"
# Run the MCP server
ENTRYPOINT ["python", "server.py"]