fix: Update Dockerfile golang version to 1.26
Root cause of Gitea Actions build failure: - Dockerfile used golang:1.25-bookworm - go.mod requires Go >= 1.26.0 - Build failed with: go.mod requires go >= 1.26.0 (running go 1.25.14) Fix: - Updated base image to golang:1.26-bookworm - Local arm64 build now succeeds - Image size: 20.3 MB Verified: ✅ Docker build successful (arm64) ✅ Binary compiled correctly ✅ All stages passed Actions workflow should now succeed.
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
# --platform=$BUILDPLATFORM pins the build stage to the machine doing the
|
# --platform=$BUILDPLATFORM pins the build stage to the machine doing the
|
||||||
# building, then Go cross-compiles to $TARGETARCH. Without it, building an
|
# building, then Go cross-compiles to $TARGETARCH. Without it, building an
|
||||||
# amd64 image from an arm64 workstation runs the whole toolchain under QEMU.
|
# amd64 image from an arm64 workstation runs the whole toolchain under QEMU.
|
||||||
FROM --platform=$BUILDPLATFORM golang:1.25-bookworm AS build
|
FROM --platform=$BUILDPLATFORM golang:1.26-bookworm AS build
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user