From 2545be43151d81dbb3858184e26e4a8fd97e0940 Mon Sep 17 00:00:00 2001 From: matst80 Date: Wed, 17 Jun 2026 22:49:13 +0200 Subject: [PATCH] update dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e534dc4..4345143 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,10 @@ ############################ # Build Stage ############################ -FROM golang:1.26-alpine AS build +# Run the Go toolchain on the NATIVE build platform and cross-compile to the +# target via GOOS/GOARCH below — avoids emulating an amd64 toolchain on arm64 +# hosts (QEMU segfaults during module download). No-op when build==target. +FROM --platform=$BUILDPLATFORM golang:1.26-alpine AS build WORKDIR /src RUN apk add --no-cache git