fix: 修复 CI/CD 构建环境的 Docker 镜像拉取问题

- 使用阿里云镜像仓库替代 Docker Hub
- 在 CI/CD 工作流中配置 Docker 镜像代理
- 添加多个镜像源以提高可靠性
- 解决构建环境网络连接超时问题
This commit is contained in:
iriver
2025-07-14 22:38:17 +08:00
parent a5622088b3
commit 34c608f1c9
2 changed files with 25 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# 多阶段构建,优化镜像大小和安全性
# Stage 1: 构建阶段
FROM golang:1.23-alpine AS builder
FROM registry.cn-hangzhou.aliyuncs.com/library/golang:1.23-alpine AS builder
# 设置工作目录
WORKDIR /app