# build stage FROM node:lts-alpine as build-stage WORKDIR /app COPY package*.json ./ RUN npm install RUN npm run build COPY dist ./ # production stage FROM nginx as production-stage COPY --from=build-stage /app /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]