fix(docker-compose): 修复当 node_modules 为空的时候,无法挂在 volumes 的问题

This commit is contained in:
Wenjie Zhang 2025-07-28 19:07:58 +08:00
parent cfe5d2a190
commit 3ba13dd6f3

View File

@ -57,8 +57,10 @@ services:
image: yuxi-web:0.2.0.dev
container_name: web-dev
volumes:
- ./web:/app
- /app/node_modules
- ./web/src:/app/src
- ./web/public:/app/public
- ./web/index.html:/app/index.html
- ./web/vite.config.js:/app/vite.config.js
ports:
- "5173:5173"
depends_on: