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

177
Visualizações
Why does this yarn command not work in docker

tl;dr In docker containers, after the first run, the chained command will not run.

I'm building a dev flow with docker for a nodejs project and I'm having an issue with a chained command inside the docker container.

The command in question is: tsc -w & nodemon -q -w dist dist/index.js

When I run this locally, it works fine and after code change the nodemon instance reloads and the changes are reflected in the output. If I run this on the docker container, the first run will work (i.e. it shows the tsc step then the code's output). However, after the first run, only the tsc -w step is run.

Is there any reason why this might happen?

Extra info:

  • OS: Win11
  • Base docker image: node
about 4 years ago · Juan Pablo Isaza
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