Skip to content

armgit / ARTEX

Public Imported from GitHub
0

ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)

build: pin the Go builder image to 1.26.11 to match go.mod

BaaRaie435b6b0bdf8
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