Skip to content

Commit a88a18a

Browse files
committed
docker: pin build-env base to node:22-bookworm
The CI deploy runs inside the prebuilt changkun/modern-cpp-tutorial:build-env image. Per the Docker Hub API that image was last pushed 2019-07-15 and never updated -- built from node:latest, which was Node 12 at the time. Hexo 8 requires Node >= 20.19, so that stale image cannot run the upgraded toolchain; pushing the Hexo 8 upgrade without rebuilding it will break the deploy at 'hexo generate'. Pin to a concrete current LTS so the rebuild is deterministic and won't silently drift again. NOTE: this Dockerfile change is untested -- the image still dpkg-installs a 2019 pandoc 2.7.3 .deb and texlive-full, and CI's make target builds pdf+epub as well as the site, so a rebuild needs a one-off test ('make build-env' then a full 'make') before relying on it to deploy.
1 parent 74755a1 commit a88a18a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docker/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM node:latest
1+
# Pin to a concrete, current Node LTS. The toolchain (Hexo 8) requires
2+
# Node >= 20.19; an unpinned `node:latest` silently drifts, and the build-env
3+
# image was last rebuilt in 2020 (Node 15), which Hexo 8 will not run on.
4+
FROM node:22-bookworm
25

36
LABEL "maintainer"="Changkun Ou <hi[at]changkun.de>"
47
LABEL "repository"="https://github.com/changkun/modern-cpp-tutorial"

0 commit comments

Comments
 (0)