Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

261
Views
What does docker's -j$(nproc) mean?

In the docker template file, some commands must be followed by -j$(nproc). What does it mean?

For example: when php installs gd library: docker-php-ext-install -j$(nproc) gd

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

There's no "must" about -j, it's optional to spawn nproc [which is a command to return the number of processors] parallel build jobs to compile the extensions. It is simply passed through to make's -j option:

   -j [jobs], --jobs[=jobs]
        Specifies the number of jobs (commands) to run simultaneously.  If there is more than one -j option,
        the  last  one is effective.  If the -j option is given without an argument, make will not limit the
        number of jobs that can run simultaneously.

Really docker-php-ext-install is just a bit of bash handwaving around make: https://github.com/docker-library/php/blob/master/docker-php-ext-install

TLDR: -j$(nproc) make build go fast.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!