#!/bin/sh # Wraps `node` with a raised file-descriptor limit. PHP-FPM starts with # rlimit_files=1024; Chromium opens ~2000 fds on startup and dies before # Puppeteer can attach, surfacing as "Failed to launch the browser # process: Code: null". Bumping just this subprocess tree avoids # restarting FPM to raise the pool-wide limit. exec /usr/bin/prlimit --nofile=65536 /usr/bin/node "$@"