build(docker): 更新pnpm安装命令以解决依赖问题

- 在pnpm install命令中添加--shamefully-hoist参数
- 保持vite构建步骤不变
- 维持nginx基础镜像配置
This commit is contained in:
coolxitech
2025-12-13 12:08:55 +08:00
parent 90f18952ec
commit 3ed03b5e37

View File

@@ -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