fix(docker): update Go version to 1.24 for compatibility

fix: update Go toolchain to 1.24 in Docker builder

- Changed FROM golang:1.21-alpine to golang:1.24-alpine AS builder
- Resolves "go.mod requires go >= 1.24" error during go mod download
- Ensures Docker build uses same Go version as development environment
- Prevents toolchain version mismatch issues in CI/CD pipelines
This commit is contained in:
Cookpro
2025-12-16 21:13:47 +08:00
committed by GitHub
parent be7b2477c3
commit 43abc8d267

View File

@@ -1,5 +1,5 @@
# 构建阶段
FROM golang:1.21-alpine AS builder
FROM golang:1.24-alpine AS builder
WORKDIR /app