Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

fix(docker): install build toolchain for better-sqlite3 native compile (#143)

Tashfeen1da10bf88d70
diff --git a/Dockerfile b/Dockerfile
index 3050000c..e4d8a194 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,6 +5,14 @@ ARG NODE_IMAGE=node:20-bookworm-slim
FROM ${NODE_IMAGE} AS deps
WORKDIR /app
+# better-sqlite3 is a native module; on slim images without a usable prebuilt
+# binary (notably the linux/arm64 leg under QEMU) it compiles from source via
+# node-gyp, which needs Python + a C++ toolchain. These live only in the build
+# stages — the runtime image copies the already-compiled node_modules.
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends python3 make g++ \
+ && rm -rf /var/lib/apt/lists/*
+
COPY package.json package-lock.json ./
COPY shared/package.json ./shared/
COPY server/package.json ./server/