From 36582b1c16aed97a5da2de4fc64fc7436fdd78df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=9F=E4=BA=8C=E8=BF=9C?= Date: Tue, 7 Apr 2026 19:00:04 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/Dockerfile b/web/Dockerfile index 5eec5682..2b059a05 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -7,6 +7,11 @@ COPY . . RUN pnpm build FROM jsessh-registry.cn-shanghai.cr.aliyuncs.com/base-images/nginx-skillhub:alpine + +# 限制 envsubst 只替换 SKILLHUB_ 开头的变量,避免覆盖 nginx 的 $uri $host 等变量 +# 设置默认值,部署时通过环境变量覆盖 +ENV SKILLHUB_API_UPSTREAM=${SKILLHUB_API_UPSTREAM:-http://sz-api.indusmind.local/skillhub-server} + COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/src/docs/skill.md.template /usr/share/nginx/html/registry/skill.md.template COPY nginx.conf.template /etc/nginx/templates/default.conf.template