title: defining multiple services on Dockerfile with single CMD
body: <p>Say I have the commands:</p>
  
  <p><code>rails server</code></p>
  
  <p>and</p>
  
  <p><code>bundle exec something:default</code></p>
  
  <p>I understand my Dockerfile can only have 1 CMD line so is it ok to do:</p>
  
  <p><code>CMD ["sh", "-c", "rail server &amp;&amp; bundle exec something:default"]</code></p>
  
  <p>As it's just those 2 commands, I don't want to COPY a script.sh then use that (hoping for a simple 1 line way).</p>
  
  <p>Is there a best practice I should be aware of when running 2 services in one container?</p>