chore: remove volumes in services

This commit is contained in:
Rotimi Best
2024-09-19 10:23:50 +01:00
parent a6831efccd
commit e097474b06
+1 -5
View File
@@ -10,9 +10,7 @@ services:
backend:
image: node:18
working_dir: /app/project
volumes:
- ./apps/backend:/app/project
command: sh -c "rm -rf node_modules && npm i && npm start"
command: sh -c "cd apps/backend && rm -rf node_modules && npm i && npm start"
ports:
- '3002:3002'
environment:
@@ -35,8 +33,6 @@ services:
dashboard:
image: node:18
working_dir: /app/project
volumes:
- ./:/app/project
command: sh -c "npm install -g pnpm && rm -rf node_modules && yes | pnpm install --frozen-lockfile && cd apps/dashboard && pnpm build && pnpm start"
ports:
- '5173:5173'