Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

Update Dockerfile to include npm build step for frontend assets

LearningCircuit419f7c283e2d
diff --git a/Dockerfile b/Dockerfile
index 93f6172c90..1d42f98fda 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,10 +3,13 @@
####
FROM python:3.12.8-slim AS builder-base
-# Install system dependencies for SQLCipher
+# Install system dependencies for SQLCipher and Node.js for frontend build
RUN apt-get update && apt-get install -y \
libsqlcipher-dev \
build-essential \
+ curl \
+ && curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
+ && apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies and tools
@@ -20,12 +23,20 @@ COPY pdm.lock pdm.lock
COPY src/ src
COPY LICENSE LICENSE
COPY README.md README.md
+# Copy frontend build files
+COPY package.json package.json
+COPY package-lock.json* package-lock.json
+COPY vite.config.js vite.config.js
####
# Builds the LDR service dependencies used in production.
####
FROM builder-base AS builder
+# Install npm dependencies and build frontend assets
+RUN npm install
+RUN npm run build
+
# Install the package using PDM
RUN pdm install --check --prod --no-editable