Add thread calculation
Add thread calculation

eg:
cpu cores: 8

—threads=auto -> 8
—threads=auto/2 -> 4
—threads=auto*2 -> 16
—threads=auto-1 -> 7
—threads=auto+1 -> 9

webdevops/Dockerfile,webdevops/Dockerfile,webdevops/Dockerfile,webdevops/Dockerfile,webdevops/Dockerfile,webdevops/Dockerfile