fix: Add DATABASE_URL env var in builder stage for Prisma

This commit is contained in:
2026-03-23 23:32:19 -03:00
parent 28366151cf
commit fc53062eb1

View File

@@ -23,6 +23,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
ENV DATABASE_URL="file:./dev.db"
RUN npx prisma generate RUN npx prisma generate
RUN npm run build RUN npm run build