This commit is contained in:
hailin 2025-04-05 19:21:17 +08:00
parent 5973d8d51d
commit 0410e952d8
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# 1. 构建镜像(名字直接叫 cradle # 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 # 2. 运行容器(容器名叫 Cradle
docker run -d --name Cradle -p 3008:3008 --restart always cradle:latest docker run -d --name Cradle -p 3008:3008 --restart always cradle:latest