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