FROM node:18-alpine as builder WORKDIR /app COPY package.json . RUN npm i COPY . . RUN npm run gen:docs FROM nginx:stable-alpine3.17 COPY --from=builder /app/docs /usr/share/nginx/html