fix: make sqlite-vec download non-fatal in Dockerfile
This commit is contained in:
parent
95d7c141ca
commit
f09de1c28a
1 changed files with 5 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ COPY requirements.txt .
|
|||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# sqlite-vec: optional vector search extension for context embedding (Paid tier)
|
||||
RUN set -eux; \
|
||||
RUN set -e; \
|
||||
SVEC_VER=0.1.6; \
|
||||
ARCH=$(uname -m); \
|
||||
case "$ARCH" in \
|
||||
|
|
@ -27,9 +27,10 @@ RUN set -eux; \
|
|||
*) echo "sqlite-vec: unsupported arch $ARCH — skipping" && exit 0 ;; \
|
||||
esac; \
|
||||
curl -fsSL -o /tmp/sqlite_vec.tar.gz \
|
||||
"https://github.com/asg017/sqlite-vec/releases/download/v${SVEC_VER}/sqlite-vec-${SVEC_VER}-loadable-linux-${SVEC_ARCH}.tar.gz"; \
|
||||
tar -xz -C /usr/lib/python3/ -f /tmp/sqlite_vec.tar.gz --wildcards '*.so' || true; \
|
||||
rm /tmp/sqlite_vec.tar.gz
|
||||
"https://github.com/asg017/sqlite-vec/releases/download/v${SVEC_VER}/sqlite-vec-${SVEC_VER}-loadable-linux-${SVEC_ARCH}.tar.gz" \
|
||||
&& tar -xz -C /usr/lib/python3/ -f /tmp/sqlite_vec.tar.gz --wildcards '*.so' \
|
||||
&& rm /tmp/sqlite_vec.tar.gz \
|
||||
|| echo "sqlite-vec optional extension unavailable — vector search disabled"
|
||||
|
||||
COPY app/ ./app/
|
||||
COPY patterns/ ./patterns/
|
||||
|
|
|
|||
Loading…
Reference in a new issue