FROM node:22-alpine AS builder WORKDIR /app COPY docs/package.json docs/package-lock.json ./ RUN npm ci COPY docs/ . RUN npm run build FROM nginx:alpine # Patched Alpine packages (the nginx base lags behind, e.g. brotli in Oct 2026). RUN apk upgrade --no-cache RUN rm /etc/nginx/conf.d/default.conf COPY docs/nginx.conf /etc/nginx/conf.d/default.conf # base is /docs/ (see docs/.vitepress/config.mts) — the site lives under /docs/ COPY --from=builder /app/.vitepress/dist /usr/share/nginx/html/docs EXPOSE 80