diff --git a/distros/src/Dockerfile.zyp-opensuse b/distros/src/Dockerfile.zyp-opensuse index b3bb52e0..3d3f05e5 100644 --- a/distros/src/Dockerfile.zyp-opensuse +++ b/distros/src/Dockerfile.zyp-opensuse @@ -16,13 +16,15 @@ FROM opensuse/leap:15.5 ARG TYPE=core # zyp-source +# http://mirrors.ustc.edu.cn/help/opensuse.html # https://blog.csdn.net/zhuzhenyu215/article/details/133523918 +# mirrors.ustc.edu.cn mirrors.aliyun.com RUN \ - # 添加阿里OpenSUSE镜像源 - zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.5/repo/oss openSUSE-Aliyun-OSS; \ - zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.5/repo/non-oss openSUSE-Aliyun-NON-OSS; \ - zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.5/oss openSUSE-Aliyun-UPDATE-OSS; \ - zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.5/non-oss openSUSE-Aliyun-UPDATE-NON-OSS; \ + export dm="mirrors.ustc.edu.cn"; \ + zypper ar -fc https://$dm/opensuse/distribution/leap/15.5/repo/oss openSUSE-Aliyun-OSS; \ + zypper ar -fc https://$dm/opensuse/distribution/leap/15.5/repo/non-oss openSUSE-Aliyun-NON-OSS; \ + zypper ar -fc https://$dm/opensuse/update/leap/15.5/oss openSUSE-Aliyun-UPDATE-OSS; \ + zypper ar -fc https://$dm/opensuse/update/leap/15.5/non-oss openSUSE-Aliyun-UPDATE-NON-OSS; \ \ zypper clean; rm -rf /var/cache/zypp; # 刷新更新