# Build stage FROM node:22-alpine AS build WORKDIR /app # Install pnpm RUN npm install -g pnpm COPY package.json pnpm-lock.yaml* ./ RUN pnpm install --frozen-lockfile || pnpm install COPY . . RUN pnpm run build # Production stage FROM nginx:alpine COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]