From aeabebdd9f64990e63bb633f70aa69a3d86b0b55 Mon Sep 17 00:00:00 2001 From: zhipu Date: Wed, 25 Mar 2026 17:54:05 +0000 Subject: [PATCH] Fix Docker build: create .config/prisma directory for Prisma 6 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a56f7b2..790ac16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,11 +19,13 @@ RUN bun install --frozen-lockfile # Copy the rest of the application COPY . . +# Create Prisma config directory to prevent config lookup error +RUN mkdir -p /app/.config/prisma + # Set environment variables for build ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_ENV=production ENV DATABASE_URL="file:./dev.db" -ENV PRISMA_SKIP_CONFIG_LOADING=1 # Generate Prisma client RUN bunx prisma generate --schema=./prisma/schema.prisma