prisma fixes

This commit is contained in:
2026-03-12 19:15:56 -05:00
parent 7d7c34bcb1
commit 5de0f52af7
2 changed files with 8 additions and 6 deletions

View File

@@ -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 <<EOF /app/entrypoint.sh

View File

@@ -4,6 +4,7 @@
generator client {
provider = "prisma-client-js"
output = "../src/generated/client"
engineType = "library"
}
datasource db {