From e435b6b0bdf8f88dae2cd711046984844aa47a60 Mon Sep 17 00:00:00 2001 From: BaaRai <130491490+BaaRai@users.noreply.github.com> Date: Sat, 21 Nov 2026 18:05:35 +0100 Subject: [PATCH] build: pin the Go builder image to 1.26.11 to match go.mod --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 969f984..34963d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,10 +22,11 @@ COPY web/ ./ RUN npm run build:static # ------------------------------------------------------------- Go binary --- -# Pinned to the Go 1.26 line (matches go.mod and the release binaries job). The -# binary is CGO-free, so this stage runs on the build platform and cross-compiles -# to $TARGETARCH without QEMU. -FROM --platform=$BUILDPLATFORM golang:1.26-bookworm AS build +# Pinned to the exact Go release go.mod requires. The official image sets +# GOTOOLCHAIN=local, so a floating 1.26 tag that lags go.mod fails the build; +# bump this together with the go line in go.mod. The binary is CGO-free, so this +# stage runs on the build platform and cross-compiles to $TARGETARCH without QEMU. +FROM --platform=$BUILDPLATFORM golang:1.26.11-bookworm AS build WORKDIR /src COPY go.mod go.sum ./ RUN go mod download