FROM node:latest AS builder WORKDIR /var/build/ COPY ./ /var/build/ RUN npm install RUN npm run build FROM nginx:alpine COPY --from=builder /var/build/dist /usr/share/nginx/html