#!/bin/bash # Ver: 3.0 by Endial Fang (endial@126.com) # # Docker 镜像构建脚本 - 主入口 # 编译后镜像名称 export IMAGE_NAME="alpine" # 依赖镜像的仓库地址(本镜像需要依赖原生 alpine 镜像) export REGISTRY_URL="swr.cn-north-4.myhuaweicloud.com/img-sync/docker.io/" # 源仓库地址(本地编译时,使用阿里云源仓库) export APT_SOURCE="aliyun" # 针对无法直接下载到软件包,本地变异时,使用缓存的软件包 export LOCAL_URL="http://pkgs.colovu.com/dist" # 引入本地构建脚本 if [ -f ".ci/common/build_local.sh" ]; then # 执行本地构建脚本并传递参数 exec ".ci/common/build_local.sh" "$@" else echo "Error: .ci/common/build_local.sh script not found!" exit 1 fi