This commit is contained in:
parent
5973d8d51d
commit
0410e952d8
|
|
@ -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
|
||||
Loading…
Reference in New Issue