Repository: puppeteer
Issue: [Bug]: Puppeteer fails to launch browser process when running in a Nixpacks container
Labels: bug,confirmed,@puppeteer/browsers,P3

### Steps to reproduce

- Run a Node.js / Next.js project through [Coolify](https://coolify.io) using the Nixpacks Build Pack to containerize it. ([Coolify docs](https://coolify.io/docs/resources/applications/nextjs))
- Invoke `puppetter.launch({headless: "shell"})` on the server.

The code invoking puppeteer:
```
export async function htmlToPDF(html: string, options?: PDFOptions) {
  if (typeof html !== "string") throw new Error("Invalid HTML; expected string.");
  const browser = await puppeteer.launch({
    headless: "shell",
    args: ["--no-sandbox", "--disable-setuid-sandbox"],
  });
  const page = await browser.newPage();
  await page.setContent(html);
  const pdf = await page.pdf({
    printBackground: true,
    omitBackground: true,
    ...options,
  });
  await browser.close();
  return pdf.toString("base64");
}
```

### Expected results

- I expect puppeteer to launch the headless shell successfully.

### Actual results

Invoking the function on the server leads to the following error:
```
2024-06-13T20:28:53.089405665Z Error: Failed to launch the browser process!
2024-06-13T20:28:53.089450945Z /root/.cache/puppeteer/chrome-headless-shell/linux-125.0.6422.78/chrome-headless-shell-linux64/chrome-headless-shell: 1: �@�%: not found
2024-06-13T20:28:53.089458345Z /root/.cache/puppeteer/chrome-headless-shell/linux-125.0.6422.78/chrome-headless-shell-linux64/chrome-headless-shell: 2: @8@36@@@�����Є�Є�������: not found
2024-06-13T20:28:53.089465545Z /root/.cache/puppeteer/chrome-headless-shell/linux-125.0.6422.78/chrome-headless-shell-linux64/chrome-headless-shell: 1: K���: not found
2024-06-13T20:28:53.089470185Z /root/.cache/puppeteer/chrome-headless-shell/linux-125.0.6422.78/chrome-headless-shell-linux64/chrome-headless-shell: 1: ELF: not found
2024-06-13T20:28:53.089474505Z /root/.cache/puppeteer/chrome-headless-shell/linux-125.0.6422.78/chrome-headless-shell-linux64/chrome-headless-shell: 3: P: not found
2024-06-13T20:28:53.089478705Z /root/.cache/puppeteer/chrome-headless-shell/linux-125.0.6422.78/chrome-headless-shell-linux64/chrome-headless-shell: 4: P: not found
2024-06-13T20:28:53.089483465Z /root/.cache/puppeteer/chrome-headless-shell/linux-125.0.6422.78/chrome-headless-shell-linux64/chrome-headless-shell: 5: Syntax error: word unexpected (expecting ")")
2024-06-13T20:28:53.089487945Z 
2024-06-13T20:28:53.089491385Z 
2024-06-13T20:28:53.089494865Z TROUBLESHOOTING: https://pptr.dev/troubleshooting
2024-06-13T20:28:53.089498545Z 
2024-06-13T20:28:53.089502185Z     at Interface.onClose (/app/node_modules/@puppeteer/browsers/lib/cjs/launch.js:310:24)
2024-06-13T20:28:53.089506065Z     at Interface.emit (node:events:529:35)
2024-06-13T20:28:53.089510985Z     at Interface.close (node:internal/readline/interface:534:10)
2024-06-13T20:28:53.089514945Z     at Socket.onend (node:internal/readline/interface:260:10)
2024-06-13T20:28:53.089518665Z     at Socket.emit (node:events:529:35)
2024-06-13T20:28:53.089522545Z     at endReadableNT (node:internal/streams/readable:1400:12)
2024-06-13T20:28:53.089526585Z     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
```

Anyone have any ideas as to what could be contributing to the error?

Notes:
- Everything works fine locally on my Windows 10 PC.
- The Coolify instance runs on a `Linux 5.15.0-112-generic aarch64` server with `Ubuntu 22.04.4 LTS`, if that is of any importance.
- The build image Nixpacks chose to use is [ghcr.io/railwayapp/nixpacks:ubuntu-1716249803]('ghcr.io/railwayapp/nixpacks:ubuntu-1716249803').