From 87cf0d205fc54c5bb2a531368a687745c5dcd68e Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Sun, 19 Apr 2026 21:39:51 +0100 Subject: [PATCH] env --- dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dockerfile b/dockerfile index 9c0f969..5807c20 100644 --- a/dockerfile +++ b/dockerfile @@ -14,6 +14,9 @@ COPY . . # Ensure env exists (optional safety for containers) RUN if [ ! -f .env ] && [ -f .env.example ]; then cp .env.example .env; fi +# Required by prisma generate during image build +ARG DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres" +ENV DATABASE_URL=$DATABASE_URL # Generate Prisma Client for the Linux environment RUN npx prisma generate