From 952e0f02f9371830327ea9653183931780940926 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Sun, 19 Apr 2026 21:04:40 +0100 Subject: [PATCH] change --- dockerfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/dockerfile b/dockerfile index e25a223..08dfef7 100644 --- a/dockerfile +++ b/dockerfile @@ -7,19 +7,23 @@ RUN corepack enable && corepack prepare pnpm@latest --activate # Install deps COPY package.json pnpm-lock.yaml ./ +# Important: ensure prisma is installed RUN pnpm install --frozen-lockfile -# Copy source +# Copy Prisma schema specifically before generating +# Replace 'prisma/schema.prisma' with your actual path if different +COPY prisma ./prisma/ + +# Generate Prisma Client for the Linux environment +RUN npx prisma generate + +# Copy the rest of the source COPY . . -# Ensure env exists (optional safety for containers) -RUN if [ ! -f .env ] && [ -f .env.example ]; then cp .env.example .env; fi - - # Build NestJS RUN pnpm build EXPOSE 3000 -# Change your CMD to this: +# Using the path confirmed in your previous logs CMD ["node", "dist/src/main.js"] \ No newline at end of file