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.
This commit is contained in:
向宁 2026-05-17 22:14:17 +08:00
parent d3015d63f2
commit 5e20a6d7fc

View File

@ -1,5 +1,5 @@
# Build Stage - 使用预装 Go 的基础镜像 # 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 WORKDIR /app
@ -17,7 +17,7 @@ COPY . .
RUN go build -v -o server ./cmd/server RUN go build -v -o server ./cmd/server
# Run Stage # Run Stage
FROM 192.168.1.154:31010/docker/alpine:latest FROM alpine:latest
WORKDIR /app WORKDIR /app