Simplify setup again to run in vscode (#138)

This commit is contained in:
Charles Bochet
2023-05-25 16:58:33 +02:00
committed by GitHub
parent 34543b7fea
commit 61099f99b8
3 changed files with 7 additions and 11 deletions

View File

@ -1,5 +0,0 @@
{
"recommendations": [
"esbenp.prettier-vscode"
]
}

View File

@ -9,8 +9,7 @@ services:
- "3001:3001"
- "6006:6006"
volumes:
- ../../front:/app/front
- ../../server:/app/server
- ../..:/app
- twenty_node_modules_front:/app/front/node_modules
- twenty_node_modules_server:/app/server/node_modules
depends_on:
@ -20,7 +19,7 @@ services:
context: ../..
dockerfile: ./infra/dev/twenty-docs/Dockerfile
ports:
- "5001:3000"
- "5001:5001"
volumes:
- ../../docs:/app/docs
- twenty_node_modules_docs:/app/docs/node_modules

View File

@ -13,15 +13,17 @@ COPY ../../front/package.json .
COPY ../../front/package-lock.json .
RUN npm install
COPY ../../front .
WORKDIR /app/server
COPY ../../server/package.json .
COPY ../../server/package-lock.json .
RUN npm install
COPY ../../server .
WORKDIR /app
COPY ../.. .
WORKDIR /app/server
RUN npx prisma generate
WORKDIR /app