From 0338fa76ad897197d7efb72899e884d7d48537b0 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 7 Apr 2025 12:32:31 +0800 Subject: [PATCH] . --- apps/blogai/Dockerfile | 4 ++-- build.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/blogai/Dockerfile b/apps/blogai/Dockerfile index c662697..811d94c 100644 --- a/apps/blogai/Dockerfile +++ b/apps/blogai/Dockerfile @@ -2,7 +2,7 @@ FROM node:18-bullseye-slim AS builder # 设置构建参数(提前定义,后续build、ENV都能用) - ARG BLOGAI_HOST=192.168.0.181 + ARG BLOGAI_HOST=192.168.10.104 # 设置构建环境变量 ENV NODE_ENV=development @@ -31,7 +31,7 @@ FROM node:18-slim AS runner # 重新定义build参数,且默认值一致 - ARG BLOGAI_HOST=192.168.0.181 + ARG BLOGAI_HOST=192.168.10.104 # 设置运行环境变量 ENV NODE_ENV=production diff --git a/build.sh b/build.sh index 28d981c..13440f5 100644 --- a/build.sh +++ b/build.sh @@ -2,6 +2,7 @@ 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 \ --network=host \ -t cradle:latest \ -f apps/blogai/Dockerfile .