Skip to content

Commit 44e4784

Browse files
kvapsclaude
andcommitted
fix(docker): cross-compile builder stage to avoid QEMU-emulated arm64 build
Pin the Go builder stage to $BUILDPLATFORM so arm64 binaries are produced by native cross-compilation (GOARCH=$TARGETARCH) on the amd64 runner instead of running the Go compiler under QEMU emulation. The emulated arm64 build took ~50 min and pushed the satellite image past the 60-minute release job timeout, leaving blockstor-satellite unpublished for v0.1.0. Signed-off-by: Andrei Kvapil <andrei.kvapil@aenix.io> Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4bafd98 commit 44e4784

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.25 AS builder
2+
FROM --platform=$BUILDPLATFORM golang:1.25 AS builder
33
ARG TARGETOS
44
ARG TARGETARCH
55

0 commit comments

Comments
 (0)