fix: Dockerfile 换阿里云 apk 源,避免构建卡死
Deploy ai-agent to dev k3s / build-and-deploy (push) Successful in 4m1s
Deploy ai-agent to dev k3s / build-and-deploy (push) Successful in 4m1s
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user