-
Notifications
You must be signed in to change notification settings - Fork 242
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 992 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 992 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
33
34
35
FROM python:3.13.8-slim
LABEL io.modelcontextprotocol.server.name="io.github.neo4j-contrib/mcp-neo4j-aura-manager"
# Set working directory
WORKDIR /app
# Install build dependencies
RUN pip install --no-cache-dir hatchling
# Copy dependency files first
COPY pyproject.toml /app/
# Install runtime dependencies
RUN pip install --no-cache-dir fastmcp>=2.0.0 requests>=2.31.0 starlette>=0.40.0
# Copy the source code
COPY src/ /app/src/
COPY README.md /app/
# Install the package
RUN pip install --no-cache-dir -e .
# Environment variables for Neo4j Aura API credentials
ENV NEO4J_AURA_CLIENT_ID="test-client-id"
ENV NEO4J_AURA_CLIENT_SECRET="test-client-secret"
ENV NEO4J_TRANSPORT="stdio"
ENV NEO4J_MCP_SERVER_HOST="0.0.0.0"
ENV NEO4J_MCP_SERVER_PORT=8000
ENV NEO4J_MCP_SERVER_PATH="/mcp/"
ENV NEO4J_MCP_SERVER_ALLOW_ORIGINS=""
ENV NEO4J_MCP_SERVER_ALLOWED_HOSTS="localhost,127.0.0.1"
# Command to run the server using the package entry point
CMD ["sh", "-c", "mcp-neo4j-aura-manager"]