mirror of
https://github.com/instructkr/claw-code.git
synced 2026-06-07 23:12:14 +08:00
feat(rag): add claw-rag-service
Adds claw-rag-service for repository indexing and semantic search.
This commit is contained in:
20
rust/crates/claw-rag-service/Dockerfile
Normal file
20
rust/crates/claw-rag-service/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# qdrant-client currently requires a fairly recent stable Rust.
|
||||
# Keep this pinned to avoid surprise breaks from `rust:latest`.
|
||||
FROM rust:1.91-bookworm AS builder
|
||||
|
||||
WORKDIR /repo
|
||||
COPY . /repo/rust/
|
||||
|
||||
WORKDIR /repo/rust
|
||||
# Sanity check toolchain version (helps debug CI/Docker Desktop issues).
|
||||
RUN rustc --version && cargo --version
|
||||
# Build the service with qdrant support enabled (works even if you don't use qdrant).
|
||||
RUN cargo build -p claw-rag-service --release --features qdrant-index
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /repo/rust/target/release/claw-rag-service /app/claw-rag-service
|
||||
|
||||
EXPOSE 8787
|
||||
ENTRYPOINT ["/app/claw-rag-service"]
|
||||
Reference in New Issue
Block a user