Files
Anthias/docker
Viktor Petersson 7fc57fecf0 fix(docker): pull the BuildKit frontend via mirror.gcr.io (#3008)
* fix(docker): pull the BuildKit frontend via mirror.gcr.io

The `# syntax=docker/dockerfile:1.4` directive made every image build
fetch the frontend from registry-1.docker.io — the last remaining
Docker Hub dependency (base images already come from mirror.gcr.io,
bun/uv from ghcr.io). Docker Hub pulls from shared GitHub runner IPs
intermittently time out, failing CI before the build even starts.

Re-point the directive at Google's pull-through cache, which serves
the same multi-arch manifest list. The version pin stays for frontend
reproducibility.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* chore(docker): bump the BuildKit frontend pin from 1.4 to 1.24

1.4 dates to May 2022; 1.24 is the current release. Nothing in the
templates needs newer syntax (--mount=type=cache predates 1.4), so
this is purely picking up four years of frontend bugfixes. Keeps the
minor-pin convention — the tag floats only over patch releases.

Validated by building the rendered redis image against the mirrored
1.24 frontend.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(docker): use ENV key=value form flagged by 1.24 build checks

`docker build --check` with the 1.24 frontend flags the legacy
`ENV DEBIAN_FRONTEND noninteractive` form (LegacyKeyValueFormat) in
the test template — the only hit across all four templates. All
rendered Dockerfiles now lint clean against the new frontend.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 07:41:21 +02:00
..