From 4a958aed60f23b8795b3d862900add40b7fab2da Mon Sep 17 00:00:00 2001 From: Benjamin Pracht Date: Tue, 27 Oct 2026 10:31:44 -0700 Subject: [PATCH] build: pin the test-server builder stage to the host platform Same change as the server Dockerfile: the builder already cross-compiles via GOARCH=$TARGETARCH, so running it on $BUILDPLATFORM avoids compiling the arm64 image under QEMU. Co-Authored-By: Claude Opus 5.5 --- cmd/test-server/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/test-server/Dockerfile b/cmd/test-server/Dockerfile index 17ab6cd39..739c5acda 100644 --- a/cmd/test-server/Dockerfile +++ b/cmd/test-server/Dockerfile @@ -17,7 +17,9 @@ # # Pinned by digest so the build is reproducible even if the tag is republished. # The tag is kept alongside it for readability; Renovate updates both together. -FROM golang:1.27.3-alpine3.24@sha256:f2c872bcee949b7be9c490efd02b48a8a2fbf947cdf533f1c58525ec9d8170fd AS builder +# --platform=$BUILDPLATFORM runs the builder natively and cross-compiles via +# GOARCH below, rather than compiling under QEMU; see the repo-root Dockerfile. +FROM --platform=$BUILDPLATFORM golang:1.27.3-alpine3.24@sha256:f2c872bcee949b7be9c490efd02b48a8a2fbf947cdf533f1c58525ec9d8170fd AS builder ARG TARGETARCH