Use build-time Prisma database URL
All checks were successful
Build and deploy Backend / build (push) Successful in 1m8s

This commit is contained in:
Ruslan Bakiev
2026-05-08 17:09:20 +07:00
parent e55a7f1f37
commit 203d37f3c7

View File

@@ -7,7 +7,7 @@ FROM node:22-alpine AS build
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run prisma:generate
RUN DATABASE_URL="postgresql://mapflow:mapflow@localhost:5432/mapflow" npm run prisma:generate
RUN npm run build
FROM node:22-alpine AS runner