From 40a3dc95bfb9133de10f634da69c6377a4fe034a Mon Sep 17 00:00:00 2001 From: chufan Date: Thu, 21 Aug 2025 16:30:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8DvipD?= =?UTF-8?q?ocSite.getBase=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 +++++--- scripts/core/build-image.ts | 2 +- vuepress.config.ts | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index b13bea056..a3bf6b621 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,13 @@ # CONTAINER_BUILD: 采用容器构建 # -FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:20.17.0-alpine AS build_base +#FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:20.17.0-alpine AS build_base +FROM node:20.17.0-alpine AS build_base # 是否配置代理 ARG NEED_PROXY=false +ENV NODE_OPTIONS --max-old-space-size=200000 # 设置环境变量,支持容器构建时使用layer缓存,参考:https://pnpm.io/zh/docker ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" @@ -31,8 +33,8 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store sh ./scripts/ci && \ fi; # 构建linux镜像 -#FROM --platform=linux/amd64 nginx:1.27.0-alpine -FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.27.0-alpine +FROM --platform=linux/amd64 nginx:1.27.0-alpine +#FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.27.0-alpine # 自定义镜像的Label信息 ARG APP_NAME diff --git a/scripts/core/build-image.ts b/scripts/core/build-image.ts index 08905e302..fa1d40353 100755 --- a/scripts/core/build-image.ts +++ b/scripts/core/build-image.ts @@ -28,7 +28,7 @@ async function buildImageMain(): Promise { ['HOME_PAGE', OPEN_SOURCE_AUTHOR.homePage], ['GIT_HASH', gitShortHash], ], - memory: 20000, + memory: 200000, push: true, delete: true, logger: true, diff --git a/vuepress.config.ts b/vuepress.config.ts index 9a6f0af75..dadb3c122 100644 --- a/vuepress.config.ts +++ b/vuepress.config.ts @@ -69,7 +69,7 @@ const copyrightHtmlStr = ` * 站点配置 */ export default defineVipVuepressConfig({ - base: vipDocSite.getBase(pkg.name), + base: vipDocSite.getBase(pkg.name, '11'), title: '凡是过往、皆为序章', description: pkg.description, port: 5000,