FROM node:24.0.1-alpine as builder WORKDIR /app COPY package*.json ./ COPY nest-cli.json ./ COPY tsconfig.json ./ RUN npm install COPY src ./src RUN npm run build FROM node:24.0.1-alpine WORKDIR /app COPY package*.json ./ RUN npm install --only=production COPY --from=builder /app/dist ./dist EXPOSE 3000 CMD [ "node", "dist/main" ]