Skip to content

build(docker): enable sqlite_vec so vector search works in the image#503

Open
nicwn wants to merge 1 commit into
kenn-io:mainfrom
nicwn:fix/dockerfile-sqlite-vec
Open

build(docker): enable sqlite_vec so vector search works in the image#503
nicwn wants to merge 1 commit into
kenn-io:mainfrom
nicwn:fix/dockerfile-sqlite-vec

Conversation

@nicwn

@nicwn nicwn commented Jul 24, 2026

Copy link
Copy Markdown

The published Docker image builds with -tags fts5 only, so starting serve with [vector] enabled = true fails at startup ("binary was built without -tags sqlite_vec") and vector/hybrid search is unavailable in Docker deployments — even though the Makefile already builds fts5 sqlite_vec.

Two changes are required:

  • add sqlite_vec to the build tags, and
  • install libsqlite3-dev in the builder stage, because the sqlite-vec cgo binding (asg017/sqlite-vec-go-bindings) includes sqlite3.h at compile time.

Verified by building the image and running serve with vector enabled against an OpenAI-compatible embedding endpoint: /health reports vector ready and msgvault embeddings build populates the index.

The published Docker image builds with `-tags fts5` only, so starting `serve`
with `[vector] enabled = true` fails at startup ("binary was built without
-tags sqlite_vec") and vector/hybrid search is unavailable in Docker
deployments — even though the Makefile already builds `fts5 sqlite_vec`.

Two changes are required:
- add `sqlite_vec` to the build tags, and
- install `libsqlite3-dev` in the builder stage, because the sqlite-vec cgo
  binding (asg017/sqlite-vec-go-bindings) includes sqlite3.h at compile time.

Verified by building the image and running `serve` with vector enabled against
an OpenAI-compatible embedding endpoint: /health reports vector ready and
`msgvault embeddings build` populates the index.
@roborev-ci

roborev-ci Bot commented Jul 24, 2026

Copy link
Copy Markdown

roborev: Combined Review (a85dece)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 1m15s

@roborev-ci

roborev-ci Bot commented Jul 24, 2026

Copy link
Copy Markdown

roborev: Combined Review (a85dece)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 45s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant