mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 16:05:12 +08:00
build(docker): 更新pnpm安装命令以解决依赖问题
- 在pnpm install命令中添加--shamefully-hoist参数 - 保持vite构建步骤不变 - 维持nginx基础镜像配置
This commit is contained in:
@@ -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 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
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user