From 595f3c3d69e2a304c557b8277d52dfabb7fa8b90 Mon Sep 17 00:00:00 2001 From: Pratap2018 Date: Fri, 29 Nov 2024 13:26:33 +0530 Subject: [PATCH] limit ThreadPool --- Dockerfile | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 329d9d82..ca125802 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,5 @@ ENV NODE_OPTIONS="--openssl-legacy-provider --max-old-space-size=4096" RUN npm install COPY . . RUN npm run build -CMD ["npm","run","start"] +CMD ["npm","run","start:prod"] diff --git a/package.json b/package.json index d3a0306a..d45d09ee 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", - "start:prod": "node dist/main", + "start:prod": "UV_THREADPOOL_SIZE='7' node dist/main", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "test": "jest", "test:newman": "ts-node ./test/promptValue.ts && newman run studio-api.postman_collection.json -e environment.json",