From 50cbcb1634ff76f96c1b2c4741ecd264bb98c5a8 Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 17 Feb 2026 23:45:36 +0000 Subject: [PATCH] Fix Dockerfile: copy prisma schema before npm ci to fix postinstall --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 500569a..a1758bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,9 @@ FROM base AS deps RUN apk add --no-cache libc6-compat python3 make g++ WORKDIR /app -# Copy package files +# Copy package files AND prisma schema (needed for postinstall: prisma generate) COPY package*.json ./ +COPY prisma ./prisma/ # Install dependencies (with legacy peer deps for compatibility) RUN npm ci --legacy-peer-deps @@ -57,6 +58,3 @@ EXPOSE 3000 ENV PORT=3000 ENV HOSTNAME="0.0.0.0" - -# Start the application -CMD ["node", "server.js"]