fix(build): placeholder DATABASE_URL in builder stage
Prisma v7 vereist DATABASE_URL bij prisma generate (config-load via prisma.config.ts) zelfs als generate niet daadwerkelijk verbindt. Container-builds zonder env-file faalden hierop. Echte URL wordt nog steeds runtime gezet via env_file in docker-compose. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9a7191f4c1
commit
2812bc83e1
1 changed files with 1 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ FROM node:22-alpine AS builder
|
|||
WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
ENV DATABASE_URL="postgresql://placeholder:placeholder@localhost:5432/placeholder"
|
||||
RUN npx prisma generate
|
||||
RUN npm run build
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue