From bcb822fb17270697be73769562596a6ee7184e4c Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Sun, 19 Apr 2026 21:35:33 +0100 Subject: [PATCH] change order --- dockerfile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/dockerfile b/dockerfile index 19903ce..9c0f969 100644 --- a/dockerfile +++ b/dockerfile @@ -7,12 +7,10 @@ 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 Prisma schema specifically before generating -# Replace 'prisma/schema.prisma' with your actual path if different -COPY prisma ./prisma/ +# Copy source +COPY . . # Ensure env exists (optional safety for containers) RUN if [ ! -f .env ] && [ -f .env.example ]; then cp .env.example .env; fi @@ -20,13 +18,10 @@ RUN if [ ! -f .env ] && [ -f .env.example ]; then cp .env.example .env; fi # Generate Prisma Client for the Linux environment RUN npx prisma generate -# Copy the rest of the source -COPY . . - # Build NestJS RUN pnpm build EXPOSE 3000 -# Using the path confirmed in your previous logs +# Change your CMD to this: CMD ["node", "dist/src/main.js"] \ No newline at end of file