mirror of
https://github.com/livekit/livekit.git
synced 2026-10-28 12:13:04 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
1c72fd2b53
commit
4a958aed60
1 file changed
+3
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user