30 lines
732 B
Docker
30 lines
732 B
Docker
# Aden Tools MCP Server
|
|
# Exposes aden-tools via Model Context Protocol
|
|
|
|
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy project files
|
|
COPY pyproject.toml ./
|
|
COPY README.md ./
|
|
COPY src ./src
|
|
COPY mcp_server.py ./
|
|
|
|
# Install package with all dependencies
|
|
RUN pip install --no-cache-dir -e .
|
|
|
|
# Create non-root user for security
|
|
RUN useradd -m -u 1001 appuser && chown -R appuser:appuser /app
|
|
USER appuser
|
|
|
|
# Expose MCP server port
|
|
EXPOSE 4001
|
|
|
|
# Health check - verify server is responding
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|
CMD python -c "import httpx; httpx.get('http://localhost:4001/health').raise_for_status()" || exit 1
|
|
|
|
# Run MCP server with HTTP transport
|
|
CMD ["python", "mcp_server.py"]
|