forked from jupyter-naas/abi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.mcp
More file actions
32 lines (24 loc) · 716 Bytes
/
Dockerfile.mcp
File metadata and controls
32 lines (24 loc) · 716 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
30
31
32
# Production Dockerfile for ABI MCP Server
FROM python:3.13-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY pyproject.toml ./
RUN pip install -e .
# Copy application code
COPY mcp_server.py ./
COPY lib/ ./lib/
COPY .env* ./
# Set environment for production MCP deployment
ENV MCP_TRANSPORT=sse
ENV ABI_API_BASE=http://api:9879
# Expose the MCP HTTP server port
EXPOSE 8000
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8000/ || exit 1
# Run the MCP server
CMD ["python", "mcp_server.py"]