title: docker entrypoint using dos2unix
body: <ul>
  <li>When I run <em>docker-compose up -d --build</em></li>
  <li>The dockerfile does not trigger the CMD bash /webapp/runscript.sh</li>
  <li>Said differently...I don't see the redis-server or celery application running when I exec into the container</li>
  <li>If I manually run "bash /webapp/runscrip.sh"; the processes end up running</li>
  <li>I originally tried <em>Entrypoint ['bash', '/webapp/runscript.sh']</em> as well
  with no luck. Not sure what I am missing</li>
  </ul>
  
  <p>tail-end of dockerfile</p>
  
  <pre><code>RUN mkdir -p /logs
  
  COPY runscript.sh /webapp/runscript.sh
  RUN chmod -R u+x /webapp/runscript.sh
  RUN dos2unix /webapp/runscript.sh
  CMD bash /webapp/runscript.sh
  
  CMD tail -f /dev/null
  </code></pre>
  
  <p>runscript.sh</p>
  
  <pre><code>#!/bin/bash
  
  nohup redis-server &gt; /logs/redis.out &amp;
  nohup celery -A app.celery worker --loglevel=info &gt; /logs/celery_worker.out &amp;
  nohup celery flower -A app.celery &gt; /logs/celery_flower.out &amp;
  </code></pre>