diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..252dafc9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM python:3.10-slim + +# Set working directory +WORKDIR /app + +# Install uv for dependency management +RUN pip install uv + +# Copy the entire project +COPY . . + +# Install dependencies for the MCP server +WORKDIR /app/mcp_server +RUN uv sync + +# Set environment variables +ENV PORT=8080 +ENV PYTHONPATH=/app:/app/mcp_server + +# Expose port for Railway +EXPOSE 8080 + +# Run the MCP server +CMD ["uv", "run", "graphiti_mcp_server.py", "--transport", "sse", "--host", "0.0.0.0", "--port", "8080"] \ No newline at end of file diff --git a/railway.json b/railway.json index fae12493..290b021a 100644 --- a/railway.json +++ b/railway.json @@ -1,10 +1,6 @@ { "$schema": "https://railway.app/railway.schema.json", - "build": { - "buildCommand": "cd mcp_server && uv sync" - }, "deploy": { - "startCommand": "cd /app/mcp_server && uv run graphiti_mcp_server.py --transport sse --host 0.0.0.0 --port 8080", "restartPolicyType": "on_failure", "restartPolicyMaxRetries": 10 }