fix(docker-compose): 修复当 node_modules 为空的时候,无法挂在 volumes 的问题
This commit is contained in:
parent
cfe5d2a190
commit
3ba13dd6f3
@ -57,8 +57,10 @@ services:
|
|||||||
image: yuxi-web:0.2.0.dev
|
image: yuxi-web:0.2.0.dev
|
||||||
container_name: web-dev
|
container_name: web-dev
|
||||||
volumes:
|
volumes:
|
||||||
- ./web:/app
|
- ./web/src:/app/src
|
||||||
- /app/node_modules
|
- ./web/public:/app/public
|
||||||
|
- ./web/index.html:/app/index.html
|
||||||
|
- ./web/vite.config.js:/app/vite.config.js
|
||||||
ports:
|
ports:
|
||||||
- "5173:5173"
|
- "5173:5173"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user