fix: Dockerfile 换阿里云 apk 源,避免构建卡死
Deploy ai-agent to dev k3s / build-and-deploy (push) Successful in 4m1s

This commit is contained in:
2026-08-03 14:18:48 +08:00
parent d4059fec84
commit 9b33b3f4fb
+3 -1
View File
@@ -1,7 +1,9 @@
# 阶段1: 构建
FROM golang:alpine AS builder
RUN apk add --no-cache git ca-certificates tzdata
# 换国内源,避免 apk 从官方源超时
RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g' /etc/apk/repositories \
&& apk add --no-cache git ca-certificates tzdata
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone