fix debploiemen

This commit is contained in:
Mamadou Khoussa [028918 DSI/DAC/DIF/DS] 2025-10-28 17:09:01 +00:00
parent fdfdd1a83e
commit 08127aa36e
2 changed files with 11 additions and 0 deletions

View File

@ -13,6 +13,9 @@ RUN npm ci --legacy-peer-deps
# Copier le code source
COPY . .
# Installer les dépendances
RUN npx prisma generate
# Builder l'application
RUN npm run build
@ -32,6 +35,9 @@ WORKDIR /app
# Copier package.json et package-lock.json
COPY package*.json ./
# Copier le schema Prisma
COPY prisma ./prisma/
# Installer UNIQUEMENT les dépendances de production avec --legacy-peer-deps
RUN npm ci --omit=dev --legacy-peer-deps && \
npm cache clean --force

View File

@ -96,3 +96,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
## License
Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).
## docker
docker build -t service-core:latest .
docker run -p 3000:3000 service-core:latest