FROM node:20-alpine AS frontend RUN npm config set registry https://registry.npmmirror.com/ WORKDIR /app COPY . . RUN npm install RUN npm run build FROM scratch AS exporter COPY --from=frontend /app/dist /