Add lightweight API client extras to standalone Docker image
Includes support for all major LLM and embedder providers: - Databases: neo4j, falkordb - LLM providers: anthropic (Claude), google-genai (Gemini), groq - Embedders: voyageai, google-genai This allows users to switch between providers without rebuilding the Docker image. Keeps image size reasonable by excluding heavy dependencies like sentence-transformers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
8dd7a87623
commit
b970f19d31
1 changed files with 4 additions and 2 deletions
|
|
@ -34,9 +34,11 @@ ARG GRAPHITI_CORE_VERSION=0.22.0
|
|||
COPY pyproject.toml uv.lock ./
|
||||
|
||||
# Remove the local path override for graphiti-core in Docker builds
|
||||
# Install with BOTH neo4j and falkordb extras for maximum flexibility
|
||||
# Install with database drivers and all lightweight API client extras for maximum flexibility
|
||||
# Includes: neo4j, falkordb (databases), voyageai, anthropic, google-genai, groq (API clients)
|
||||
# Excludes: sentence-transformers (huge), neptune, kuzu (rarely used)
|
||||
RUN sed -i '/\[tool\.uv\.sources\]/,/graphiti-core/d' pyproject.toml && \
|
||||
sed -i "s/graphiti-core\[falkordb\]>=0\.16\.0/graphiti-core[neo4j,falkordb]==${GRAPHITI_CORE_VERSION}/" pyproject.toml
|
||||
sed -i "s/graphiti-core\[falkordb\]>=0\.16\.0/graphiti-core[neo4j,falkordb,voyageai,anthropic,google-genai,groq]==${GRAPHITI_CORE_VERSION}/" pyproject.toml
|
||||
|
||||
# Install Python dependencies
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue