diff --git a/Dockerfile b/Dockerfile index 6d0f7d0..143fb16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ # Single-image deploy: builds web + API, serves both on :8787. State lives in /app/data (mount a volume). FROM node:22-slim -RUN corepack enable +# Build tools: better-sqlite3 compiles from source when its prebuilt binary download fails. +RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ && rm -rf /var/lib/apt/lists/* && corepack enable WORKDIR /app COPY . . RUN pnpm install --frozen-lockfile && pnpm build