title: how can i pass arguments or bypass it in docker build process?
body: <p>I writing a Dockerfile for my PHP application, and instead of from dockerhub i am creating it from scratch.</p>
  
  <p>eg:</p>
  
  <pre><code> FROM ubuntu:18.04
   RUN apt-get update &amp;&amp; \
         apt-get install -y --no-install-recommends apt-utils &amp;&amp; \
         apt-get -y install sudo
  
   RUN sudo apt-get install apache2 -y
   RUN sudo apt-get install mysql-server -y
   RUN sudo apt-get install php libapache2-mod-php -y 
   RUN rm -rf /var/www/html/
   COPY . /var/www/html/
   WORKDIR /var/www/html/
   EXPOSE 80
   RUN chmod -R 777 /var/www/html/app/tmp/
  
   CMD systemctl restart apache2
  </code></pre>
  
  <p>at this step:</p>
  
  <pre><code> RUN sudo apt-get install php libapache2-mod-php -y
  </code></pre>
  
  <p>I get stuck, because it asks for user input, like::</p>
  
  <p>Please select the geographic area in which you live. Subsequent configuration
  questions will narrow this down by presenting a list of cities, representing
  the time zones in which they are located.</p>
  
  <ol>
  <li>Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc</li>
  <li>America     5. Arctic     8. Europe    11. SystemV</li>
  <li>Antarctica  6. Asia       9. Indian    12. US
  Geographic area: </li>
  </ol>
  
  <p>I am not able to move ahead of this, i tried like this:</p>
  
  <pre><code>RUN sudo apt-get install php libapache2-mod-php -y 9
  </code></pre>
  
  <p>But no result, please help</p>