change
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-04-19 21:04:40 +01:00
parent bc190682ed
commit 952e0f02f9
+10 -6
View File
@@ -7,19 +7,23 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
# Install deps # Install deps
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml ./
# Important: ensure prisma is installed
RUN pnpm install --frozen-lockfile 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 . . COPY . .
# Ensure env exists (optional safety for containers)
RUN if [ ! -f .env ] && [ -f .env.example ]; then cp .env.example .env; fi
# Build NestJS # Build NestJS
RUN pnpm build RUN pnpm build
EXPOSE 3000 EXPOSE 3000
# Change your CMD to this: # Using the path confirmed in your previous logs
CMD ["node", "dist/src/main.js"] CMD ["node", "dist/src/main.js"]