Refresh install scripts

This commit is contained in:
Charles Bochet
2023-04-05 15:01:20 +02:00
parent eac43d1e64
commit dc28c97df6
7 changed files with 98 additions and 47 deletions

View File

@ -9,9 +9,10 @@ services:
- "3001:3001"
- "6006:6006"
volumes:
- ../../front:/app/front
- ../../server:/app/server
- ../../infra:/app/infra
- ../..:/app
- twenty_node_modules_root:/app/node_modules
- twenty_node_modules_front:/app/front/node_modules
- twenty_node_modules_server:/app/server/node_modules
depends_on:
- postgres
postgres:
@ -23,4 +24,7 @@ services:
ports:
- "5432:5432"
volumes:
db_data:
db_data:
twenty_node_modules_root:
twenty_node_modules_front:
twenty_node_modules_server:

View File

@ -3,12 +3,6 @@ FROM node:18-alpine as app
WORKDIR /app
COPY ../.. .
WORKDIR /app/front
RUN npm install
WORKDIR /app/server
RUN npm install
WORKDIR /app
RUN npm run install-dev
CMD ["npm", "run", "start"]