Skip to content

Commit 7c35b69

Browse files
committed
fix: update Dockerfile for new daemon-backed architecture
- Remove `serve` subcommand from ENTRYPOINT β€” `cocoindex-code` with no args is the correct invocation under the new architecture; it auto-reads env vars, creates settings, and delegates to the internal daemon - Copy `ccc` binary into the runtime stage alongside `cocoindex-code` - Bump cocoindex floor pin from >=1.0.0a16 to >=1.0.0a33
1 parent c3dcbf9 commit 7c35b69

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

β€Ždocker/Dockerfileβ€Ž

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN pip install --quiet uv
99
WORKDIR /build
1010

1111
RUN uv pip install --system --prerelease=allow \
12-
"cocoindex>=1.0.0a16" \
12+
"cocoindex>=1.0.0a33" \
1313
"cocoindex-code" \
1414
"sentence-transformers>=3.3.1"
1515

@@ -27,6 +27,7 @@ FROM python:3.12-slim AS runtime
2727
# Copy installed packages and cached model from previous stages
2828
COPY --from=model_cache /usr/local/lib/python3.12 /usr/local/lib/python3.12
2929
COPY --from=model_cache /usr/local/bin/cocoindex-code /usr/local/bin/cocoindex-code
30+
COPY --from=model_cache /usr/local/bin/ccc /usr/local/bin/ccc
3031
COPY --from=model_cache /root/.cache /root/.cache
3132

3233
# The codebase is mounted at runtime β€” nothing project-specific lives here.
@@ -49,6 +50,7 @@ ENV COCOINDEX_CODE_ROOT_PATH=/workspace
4950
# -e VOYAGE_API_KEY=your-key
5051

5152
# ── MCP stdio entrypoint ──────────────────────────────────────────────────────
52-
# 'serve' runs the MCP server over stdio (JSON-RPC on stdin/stdout).
53-
# 'index' is a one-shot indexer β€” useful for pre-warming before first use.
54-
ENTRYPOINT ["cocoindex-code", "serve"]
53+
# Runs the MCP server over stdio (JSON-RPC on stdin/stdout).
54+
# Auto-reads env vars, creates settings, and starts the internal daemon.
55+
# One-shot indexer: override with --entrypoint cocoindex-code ... index
56+
ENTRYPOINT ["cocoindex-code"]

0 commit comments

Comments
Β (0)