title: Docker postgres client and commands
body: <p>I am building a Dockerfile where I pull a postgresq client. What I would like to do is to connect to the db and execute some sql commands (all defined in Dockerfile and with no interaction). If I execute something like this below, I am able to connect:</p>
  
  <pre><code>docker run -it --rm jbergknoff/postgresql-client postgresql://username:password@10.1.0.173:5432/db
  </code></pre>
  
  <p>but I do not know how to replicate this inside the Dockerfile:</p>
  
  <pre><code>FROM jbergknoff/postgresql-client
  RUN  postgresql://username:password@10.1.0.173:5432/db // error
  </code></pre>
  
  <p>where the RUN command gives me error.</p>