title: Run SQL scripts inside Dockerfile
body: <p>I am using next Dockerfile to setup postgres database engine</p>
  
  <pre><code>FROM postgres:9.6.5
  ENV POSTGRES_USER postgres
  ENV POSTGRES_PASSWORD xxx
  ENV POSTGRES_DB postgres
  ADD localDump.sql /docker-entrypoint-initdb.d
  </code></pre>
  
  <p>i need to create ROLE <strong>CREATE ROLE read_only;</strong> before initializing my database and before running localDump.sql script.</p>
  
  <p>So how can i run SQL scripts inside Dockerfile direct?</p>