This commit is contained in:
hailin 2025-07-09 17:33:55 +08:00
parent a24109a629
commit 9eb86bc4aa
1 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,11 @@ fi
# ======== 4. 构建镜像 ========
echo "🔧 开始构建镜像:$IMAGE_NAME"
docker build -t "$IMAGE_NAME" .
docker build \
--build-arg http_proxy=http://127.0.0.1:7890 \
--build-arg https_proxy=http://127.0.0.1:7890 \
--network=host \
-t "$IMAGE_NAME" .
# ======== 5. 运行容器 ========
echo "🚀 启动容器:$CONTAINER_NAME"