Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix(docker): Alpine 源切换华为云镜像,修复 CI 拉取 APKINDEX 报 BAD archive 构建失败

chen hui81d570c0279e
diff --git a/docker/openshift/Dockerfile.web b/docker/openshift/Dockerfile.web
index 6cbea24124..123e742774 100644
--- a/docker/openshift/Dockerfile.web
+++ b/docker/openshift/Dockerfile.web
@@ -21,7 +21,9 @@ RUN npm run build
FROM ${NGINX_IMAGE}
# [安全加固] 强制升级 Nginx 运行镜像中的底层依赖,规避高危漏洞
-RUN apk update && apk upgrade --no-cache
+# [网络修复] 官方 dl-cdn.alpinelinux.org 在 CI 环境拉取 APKINDEX 会返回 BAD archive,切换为华为云镜像源
+RUN sed -i 's|https://dl-cdn.alpinelinux.org|https://repo.huaweicloud.com|g' /etc/apk/repositories \
+ && apk update && apk upgrade --no-cache
COPY docker/web.nginx.conf.template /etc/nginx/templates/default.conf.template
COPY docker/web-optional-upstreams.sh /docker-entrypoint.d/40-optional-upstreams.sh