From 28e716c52b9f003184dc739b5e3ee20b2dd7058d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6rdle=20Bot?= Date: Fri, 21 Nov 2025 14:22:28 +0100 Subject: [PATCH] fix: Docker deployment with Prisma 6.19.0 - Use local Prisma version in Dockerfile instead of npx - Pin Prisma version in docker-compose to 6.19.0 - Fix data directory permissions for SQLite database - Update docker-compose.example.yml with working configuration --- Dockerfile | 2 +- docker-compose.example.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 57f065e..931c237 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ ENV NEXT_TELEMETRY_DISABLED 1 # Generate Prisma Client ENV DATABASE_URL="file:./dev.db" -RUN npx prisma generate +RUN node_modules/.bin/prisma generate RUN npm run build diff --git a/docker-compose.example.yml b/docker-compose.example.yml index 91cd242..2d2fadd 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -15,4 +15,4 @@ services: - ./public/uploads:/app/public/uploads # Initialize DB if needed command: > - sh -c "npx prisma db push && node server.js" + sh -c "npx -y prisma@6.19.0 db push && node server.js"