graphiti/mcp_server/Dockerfile
Daniel Chalef 4307274967
Add MCP Server (#301)
* experimental

* experimental

* experimental

* wip

* wip

* wip

* wip

* code cleanup

* refactor and cleanup

* fix lint

* remove unneeded mcp dep

* polish
2025-03-24 17:08:19 -07:00

24 lines
551 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Install uv for package management
RUN apt-get update && apt-get install -y curl && \
curl -LsSf https://astral.sh/uv/install.sh | sh && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Add uv to PATH
ENV PATH="/root/.local/bin:${PATH}"
# Copy pyproject.toml and install dependencies
COPY pyproject.toml .
RUN uv sync
# Copy application code
COPY graphiti_mcp_server.py .
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Command to run the application
CMD ["uv", "run", "graphiti_mcp_server.py"]