title: run script in Dockerfile
body: <p>I have to run my .sh script in Dockerfile based on "grafana/grafana" but I'm not sure how to do it.</p>
  
  <pre><code>FROM grafana/grafana
  COPY setup.sh /setup.sh
  CMD ["/bin/bash", "/setup.sh"]
  </code></pre>
  
  <p>after <code>docker run</code> my script is not running. I guess it due to in <a href="https://github.com/grafana/grafana-docker/blob/master/Dockerfile" rel="nofollow noreferrer">grafana Dockerfile</a> runs another sh script.  </p>