From 570c8069241edf75fb325e23a24f11164c2ca921 Mon Sep 17 00:00:00 2001 From: Jaret Burkett Date: Sun, 14 Jun 2026 12:24:55 -0600 Subject: [PATCH] Mode docker build work --- docker/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 2b5da2f2..cbe23f8b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -89,8 +89,12 @@ RUN echo "Cache bust: ${CACHEBUST}" && \ /tmp/ai-toolkit-src/ /app/ai-toolkit/ && \ rm -rf /tmp/ai-toolkit-src -# Build UI (re-runs on code change, but reuses the cached node_modules above) +# Build UI (re-runs on code change, but reuses the cached node_modules above). +# prisma generate must run first: it creates the @prisma/client types the TS +# build needs. In the old layout this happened as a side effect of npm install +# seeing the schema; now the source arrives after npm ci, so generate explicitly. RUN cd /app/ai-toolkit/ui && \ + npx prisma generate && \ npm run build && \ npm run update_db