diff --git a/Dockerfile b/Dockerfile index c7cc797..b9cee41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,9 @@ RUN cd apps/api && npx prisma generate RUN pnpm --filter @kooltab/api run build RUN pnpm --filter @kooltab/dashboard run build +# Compile seed script to JS (needed for production seeding) +RUN npx tsc apps/api/prisma/seed.ts --outDir apps/api/prisma --skipLibCheck --module commonjs --esModuleInterop true --resolveJsonModule true + # ---- Production API image ---- FROM node:20-alpine AS api RUN npm install -g pnpm