prisma fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
output = "../src/generated/client"
|
||||
provider = "prisma-client-js"
|
||||
output = "../src/generated/client"
|
||||
engineType = "library"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
|
||||
Reference in New Issue
Block a user