Mode docker build work
This commit is contained in:
1 parent
ebbb09230b
commit
570c806924
1 file changed
+5
-1
+5
-1
@@ -89,8 +89,12 @@ RUN echo "Cache bust: ${CACHEBUST}" && \
|
|||||||
/tmp/ai-toolkit-src/ /app/ai-toolkit/ && \
|
/tmp/ai-toolkit-src/ /app/ai-toolkit/ && \
|
||||||
rm -rf /tmp/ai-toolkit-src
|
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 && \
|
RUN cd /app/ai-toolkit/ui && \
|
||||||
|
npx prisma generate && \
|
||||||
npm run build && \
|
npm run build && \
|
||||||
npm run update_db
|
npm run update_db
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user