FROM node:20-alpine WORKDIR /app # Install dependencies COPY package*.json ./ RUN npm ci # Copy Prisma files and generate client COPY prisma ./prisma/ COPY prisma.config.ts ./ RUN npx prisma generate # Copy source code and tests COPY . . # Run tests CMD ["npm", "test"]