Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

264
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda