Another docker thing?

This commit is contained in:
Jaret Burkett
2026-06-14 12:27:05 -06:00
parent 570c806924
commit faa770fc79

View File

@@ -90,13 +90,13 @@ RUN echo "Cache bust: ${CACHEBUST}" && \
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 # update_db runs first because it does `prisma generate`, which creates the
# build needs. In the old layout this happened as a side effect of npm install # @prisma/client types the TS build needs. In the old layout generate happened
# seeing the schema; now the source arrives after npm ci, so generate explicitly. # as a side effect of npm install seeing the schema; now the source arrives
# after npm ci, so run it explicitly before the build.
RUN cd /app/ai-toolkit/ui && \ RUN cd /app/ai-toolkit/ui && \
npx prisma generate && \ npm run update_db && \
npm run build && \ npm run build
npm run update_db
# Expose port (assuming the application runs on port 3000) # Expose port (assuming the application runs on port 3000)
EXPOSE 8675 EXPOSE 8675