title: Nodemon is not working in Docker environment
body: <p>I'm using Docker with fig to build NodeJS dev-env.</p>
  
  <p>While I using nodemon to watch the server.js, changing server.js won't restart the server.</p>
  
  <pre><code>CMD ["nodemon", "/nodeapp/server.js"]
  </code></pre>
  
  <p>But while I changed from nodemon to supervisor, then it worked!</p>
  
  <pre><code>CMD ["supervisor", "/nodeapp/server.js"]
  </code></pre>
  
  <p>Does anyone know where the problem is?</p>
  
  <p>More informations are below:</p>
  
  <hr>
  
  <p>My fig folder structure:</p>
  
  <pre><code>app/server.js
      package.json
      node_modules/
  fig.yml
  Dockerfile
  </code></pre>
  
  <p>fig.yml:</p>
  
  <pre><code>nodejs:
    build: .
    ports:
      - "8080:8080"
  </code></pre>
  
  <p>Dockerfile:</p>
  
  <pre><code>RUN apt-get update --fix-missing
  RUN rm /bin/sh &amp;&amp; ln -s /bin/bash /bin/sh
  
  # NVM
  RUN curl -sL https://deb.nodesource.com/setup | sudo bash - &amp;&amp; \
    apt-get install -y nodejs
  
  VOLUME ./app:/nodeapp
  WORKDIR /nodeapp
  
  RUN rm /bin/sh &amp;&amp; ln -s /bin/bash /bin/sh &amp;&amp; \
    npm install -g nodemon mocha supervisor
  CMD ["nodemon", "/nodeapp/server.js"]
  </code></pre>
  
  <p>Server.js: (sample code from NodeJS website)</p>
  
  <pre><code>var http = require('http');
  
  http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello 12\n');
  }).listen(8080);
  
  console.log('Server running at http://127.0.0.1:8080/');
  </code></pre>