FROM node:latest as builder RUN npm install RUN npm run build COPY dist/* /dist/ FROM nginx:stable-alpine-slim RUN rm -rf /usr/share/nginx/html RUN mkdir -p /usr/share/nginx/html COPY --from=builder /dist/* /usr/share/nginx/html/