diff --git a/actions/publish-api-asset/1.0/Dockerfile.update-ca b/actions/publish-api-asset/1.0/Dockerfile.update-ca new file mode 100644 index 00000000..a60f53ff --- /dev/null +++ b/actions/publish-api-asset/1.0/Dockerfile.update-ca @@ -0,0 +1,9 @@ +# registry.erda.cloud/erda-actions/publish-api-asset-action:1.0-20241203163543-c58ff05 +FROM registry.erda.cloud/erda-actions/publish-api-asset-action:20201010-92fb804 + +# change mirror to aliyun, original mirrors offlined. +RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup && \ + curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo && \ + sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo + +RUN yum install -y ca-certificates