Astro 7: the demo was the last thing still on Astro 5
npm audit had one critical finding here (the Astro 5 advisories, among them the AVIF RCE) — irrelevant at runtime for a static site served by nginx, but the build toolchain ran it. Now 0. Build image node 20 -> 22, and npm ci only: the old '|| npm install' fallback meant a broken lockfile would silently build something untested. Checked in a real browser: all six pages 200, sheet drawn, PDF download measures 210.00 x 297.00 mm in both languages, no horizontal scroll at 390 px.
This commit is contained in:
3 files changed
+1412
-3224
No files matched your search
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
# Build the static site, then serve it with nginx. Two stages, so the image that
|
# Build the static site, then serve it with nginx. Two stages, so the image that
|
||||||
# runs carries no toolchain — about 50 MB instead of about 400.
|
# runs carries no toolchain — about 50 MB instead of about 400.
|
||||||
FROM node:20-bookworm-slim AS build
|
FROM node:22-bookworm-slim AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json* ./
|
COPY package.json package-lock.json* ./
|
||||||
RUN npm ci --no-audit --no-fund || npm install --no-audit --no-fund
|
RUN npm ci --no-audit --no-fund
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
Generated
+1407
-3219
File diff suppressed because it is too large.
Load diff
+3
-3
@@ -10,9 +10,9 @@
|
|||||||
"preview": "astro preview"
|
"preview": "astro preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/space-grotesk": "^5.1.0",
|
"@fontsource/space-grotesk": "^5.3.0",
|
||||||
"@fontsource/space-mono": "^5.1.0",
|
"@fontsource/space-mono": "^5.3.0",
|
||||||
"astro": "^5.5.0",
|
"astro": "^7.3.8",
|
||||||
"pdf-lib": "^1.17.1"
|
"pdf-lib": "^1.17.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user