Skip to content

Commit

Permalink
dist/opSuse: export dm="mirrors.ustc.edu.cn"; \
Browse files Browse the repository at this point in the history
  • Loading branch information
huapox committed Jun 20, 2024
1 parent 69dc4f9 commit 60cc6da
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions distros/src/Dockerfile.zyp-opensuse
Original file line number Diff line number Diff line change
Expand Up @@ -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;
# 刷新更新
Expand Down

0 comments on commit 60cc6da

Please sign in to comment.