Update docker-deploy.sh

This commit is contained in:
chenxingyu0001 2025-08-03 19:32:23 +08:00 committed by GitHub
parent 9105bd03a7
commit 9412b392a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 "镜像构建完成"
}