next.js
f8dc962e - [ci] Avoid apt-get in the next-stats-action Docker image (#95847)

Commit
32 days ago
[ci] Avoid apt-get in the next-stats-action Docker image (#95847) The `Stats (webpack)` / `Stats (turbopack)` CI jobs have been intermittently failing on PRs and canary (e.g. [this run](https://github.com/vercel/next.js/actions/runs/29476089144/job/87563318723)). The jobs run on arm64 runners, where the `ubuntu:24.04` base image fetches apt packages from `ports.ubuntu.com`, which is intermittently unreachable. Since `apt-get update` only warns when index fetches fail, the Docker build breaks one layer later at `apt-get install` with "Unable to locate package curl". This change switches the base image to `buildpack-deps:noble-scm`, which already ships curl, ca-certificates, and git, so the build no longer makes any apt calls at all. The `apt-get upgrade` step is dropped along with it; it was already a silent no-op whenever the mirror was down, and the ephemeral CI container does not rely on it. Both `.github/next-stats-action.Dockerfile` (the one CI builds via `action.yml`) and the duplicate `.github/actions/next-stats-action/Dockerfile` are updated to stay in sync.
Author
Parents
Loading