title: Automatically creating Laravel project fails with error: TTY mode requires /dev/tty to be read/writable
body: <p>This is the output of the command:</p>
  
  <pre><code>Step 5/7 : RUN ./vendor/bin/laravel new --force testapp
   ---&gt; Running in dc92e378b12a
  Crafting application...
  [91m
  [0m[91mIn Process.php line 1062:
  
    TTY mode requires /dev/tty to be read/writable.
  
  
  new [--dev] [--force] [--] [&lt;name&gt;]
  
  [0mService 'cli' failed to build: The command '/bin/sh -c ./vendor/bin/laravel new --force testapp' returned a non-zero code: 1
  [Pipeline] }
  </code></pre>
  
  <p>This is my Docker file:</p>
  
  <pre><code>$ cat Dockerfile.cli
  FROM php:7.2-cli
  
  COPY composer.json /app/
  COPY scripts /app/scripts
  RUN composer install --no-dev
  RUN ./vendor/bin/laravel new --force testapp
  
  # Define where the Drupal Root is located
  ENV WEBROOT=web
  </code></pre>
  
  <p>How can I automaticallly build a Laravel image with a specific set of packages installed to do some testing?</p>