diff --git a/apps/blogai/build.sh b/apps/blogai/build.sh index 4f94491..28d981c 100644 --- a/apps/blogai/build.sh +++ b/apps/blogai/build.sh @@ -1,5 +1,10 @@ # 1. 构建镜像(名字直接叫 cradle) -docker build --network=host -t cradle:latest . +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 cradle:latest \ + -f apps/blogai/Dockerfile . # 2. 运行容器(容器名叫 Cradle) docker run -d --name Cradle -p 3008:3008 --restart always cradle:latest \ No newline at end of file