title: How to keep an infinite loop running in order to not close a container in docker
body: <p>I want to keep a docker container running even after executing the run command (containers exit immediately after <code>docker run..</code>. I know the command:</p>
  
  <pre><code>  while :;do 
     sleep 300
    done
  </code></pre>
  
  <p>during <code>docker run</code> will make it run but how do I edit the <b> Dockerfile </b> itself in order to keep it running?</p>