From 3ed03b5e372412fded10d1d808fcb91ab8034c3e Mon Sep 17 00:00:00 2001 From: coolxitech Date: Sat, 13 Dec 2025 12:08:55 +0800 Subject: [PATCH] =?UTF-8?q?build(docker):=20=E6=9B=B4=E6=96=B0pnpm?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=91=BD=E4=BB=A4=E4=BB=A5=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在pnpm install命令中添加--shamefully-hoist参数 - 保持vite构建步骤不变 - 维持nginx基础镜像配置 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 77b4060..a90d97a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN git clone https://github.com/setube/ogame-vue-ts.git RUN mv ./ogame-vue-ts/* . ; rm -rf ./ogame-vue-ts/ -RUN npm install -g pnpm ; pnpm install ; npx vite build +RUN npm install -g pnpm ; pnpm install --shamefully-hoist; npx vite build FROM nginx:alpine