Repository navigation
fix(express-puppeteer): Move to Puppeteer 25 on Node 22 - #518
Merged
Merged
Conversation
Puppeteer 24 pulls in extract-zip, basic-ftp 5 and zod 3, which have open Dependabot alerts. Puppeteer 25 drops them, but needs Node 22.12 and the image installs Node 18 from Debian. Build on node:22-bookworm, copy its node binary, and drop the Debian Node libraries. Install the libraries that Chrome 157 needs and bump puppeteer to 25.18.1. Signed-off-by: Andrei Besliu <andreibesliu@unikraft.com>
Contributor
Author
|
I removed the debian base from the dockerfile and did it on chrome instead. To me this seems ok, but if you have more insight do let me know. The purpose is to fix the ongoing dependabot issues. |
nurof3n
approved these changes
Nov 18, 2026
nurof3n
left a comment
Contributor
There was a problem hiding this comment.
LGTM!
Reviewed-by: Alex-Andrei Cioc andrei.cioc@unikraft.io
Approved-by: Alex-Andrei Cioc andrei.cioc@unikraft.io
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
puppeteerfrom 24 to 25.18.1, which clears the six open Dependabot alerts on this example (extract-zip,basic-ftp,zod). Puppeteer 25 needs Node 22.12, so the build stage moves fromdebian:bookwormwith apt's Node 18 tonode:22-bookworm. The Debian-only Node libraries are dropped, and the four libraries Chrome 157 needs (libgbm1,libxcomposite1,libxfixes3,libxrandr2) are installed explicitly.Tested locally against
main: the image builds,/returns 200, and bothGETandPOST /generate-pdfrender the same PDF as before. This supersedes #514 and #517.The PDF routes return the bytes as JSON on
maintoo, becausepage.pdf()returns aUint8Arraysince Puppeteer 22. That is left for a separate fix.Related: FIELD-1022