Build the image with Go 1.26
The Prometheus client and the golang.org/x updates raised go.mod to Go 1.26, so the Docker build with golang:1.25-alpine failed in go mod download. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c70eb4d13c
commit
439ffede18
1 file changed
+1
-1
+1
-1
@@ -3,7 +3,7 @@ ARG FRONTEND_IMAGE=gitea.sanplex.xyz/sansan/musicfrontend:latest
|
|||||||
|
|
||||||
# Stage 1: Build the backend on the build machine and cross-compile for the target platform,
|
# Stage 1: Build the backend on the build machine and cross-compile for the target platform,
|
||||||
# so multi-platform builds need no emulation.
|
# so multi-platform builds need no emulation.
|
||||||
FROM --platform=$BUILDPLATFORM golang:1.25-alpine AS build
|
FROM --platform=$BUILDPLATFORM golang:1.26-alpine AS build
|
||||||
ARG TARGETOS TARGETARCH
|
ARG TARGETOS TARGETARCH
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
|||||||
Reference in new issue
Block a user