coyotte508 HF staff commited on
Commit
54540f2
1 Parent(s): dd9a8a6

👷 Automatically detect number of cores

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -19,4 +19,4 @@ RUN npm run build
19
 
20
  ENV PORT 7860
21
 
22
- CMD ["pm2", "start", "build/index.js" ,"-i", "2", "--no-daemon"]
 
19
 
20
  ENV PORT 7860
21
 
22
+ CMD pm2 start build/index.js -i $CPU_CORES --no-daemon