FROM node:22-bullseye AS build WORKDIR /app COPY . . RUN rm -rf node_modules package-lock.json RUN npm install RUN npm run build FROM nginx:alpine COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]