FROM node:22.18.0-alpine as build WORKDIR /usr/app COPY . /usr/app RUN npm i RUN npm run build FROM nginx:1.23.1-alpine RUN rm -rf /usr/share/nginx/html/* COPY --from=build /usr/app/dist /usr/share/nginx/html CMD ["nginx", "-g", "daemon off;"]