From 9412b392a586d222fd814bb9c7dc7ae9e7103751 Mon Sep 17 00:00:00 2001 From: chenxingyu0001 <101016138+chenxingyu0001@users.noreply.github.com> Date: Sun, 3 Aug 2025 19:32:23 +0800 Subject: [PATCH] Update docker-deploy.sh --- docker-deploy.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-deploy.sh b/docker-deploy.sh index 0d025a7..47434bd 100644 --- a/docker-deploy.sh +++ b/docker-deploy.sh @@ -70,7 +70,12 @@ init_config() { # 构建镜像 build_image() { print_info "构建 Docker 镜像..." - docker-compose build --no-cache + echo "是否需要使用国内镜像(y/n): " && read iscn + if [[ $iscn == "y" ]]; then + docker-compose -f docker-compose-cn.yml build --no-cache + else + docker-compose build --no-cache + fi print_success "镜像构建完成" }