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 <