vuln-watch flags CVE-2026-111497 (critical, brotli decoder out-of-bounds write) in compliance-docs. nginx:alpine (3.24) still ships brotli-libs 1.2.0-r1; Alpine already has 1.2.1-r0. Dockerfile.docs now runs `apk upgrade --no-cache` in the nginx stage (CI already builds it with `--pull`). Tested locally: image builds, brotli-libs 1.2.1-r0, `nginx -t` passes, site present under /docs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Reviewed-on: #581
19 lines
515 B
Docker
19 lines
515 B
Docker
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
|
|
|