From 5de0f52af74f39f8aa0e58b43ca661a1323c568b Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 12 Mar 2026 19:15:56 -0500 Subject: [PATCH] prisma fixes --- Dockerfile | 9 +++++---- prisma/schema.prisma | 5 +++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 45c6bb0..43c258f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,10 +17,11 @@ COPY . . # Generate Prisma Client (with SQLite) ENV DATABASE_URL="file:/app/data/dev.db" +ENV PRISMA_CLIENT_ENGINE_TYPE=library RUN npx prisma generate # Disable telemetry during build -ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_TELEMETRY_DISABLED=1 RUN npm run build @@ -28,8 +29,8 @@ RUN npm run build FROM base AS runner WORKDIR /app -ENV NODE_ENV production -ENV NEXT_TELEMETRY_DISABLED 1 +ENV NODE_ENV=production +ENV NEXT_TELEMETRY_DISABLED=1 ENV DATABASE_URL="file:/app/data/dev.db" RUN addgroup --system --gid 1001 nodejs @@ -53,7 +54,7 @@ USER nextjs EXPOSE 3000 -ENV PORT 3000 +ENV PORT=3000 # script to run migrations before starting COPY --chown=nextjs:nodejs <