# 1. 构建镜像(名字直接叫 cradle) rm -rf apps/blogai/.next docker build \ --build-arg http_proxy=http://127.0.0.1:7890 \ --build-arg https_proxy=http://127.0.0.1:7890 \ --build-arg BLOGAI_HOST=192.168.10.104 \ --no-cache \ --network=host \ -t cradle:latest \ -f apps/blogai/Dockerfile . # 2. 运行容器(容器名叫 Cradle) docker run -d --name Cradle -p 3008:3008 --restart always cradle:latest