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

186
Views
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
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!