From 5e20a6d7fc77c8e84570df12a26637626b524b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E5=AE=81?= <1772105645@qq.com> Date: Sun, 17 May 2026 22:14:17 +0800 Subject: [PATCH] fix: upgrade Dockerfile to Go 1.25, use Docker Hub base images go.mod requires Go 1.25 (gin-contrib/cors v1.7.7 dependency). Switch from private registry to Docker Hub for base images since they're public and the registry only has Go 1.24. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e4f9bb..dad7764 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build Stage - 使用预装 Go 的基础镜像 -FROM 192.168.1.154:31010/docker/golang:1.24-alpine AS builder +FROM golang:1.25-alpine AS builder WORKDIR /app @@ -17,7 +17,7 @@ COPY . . RUN go build -v -o server ./cmd/server # Run Stage -FROM 192.168.1.154:31010/docker/alpine:latest +FROM alpine:latest WORKDIR /app