title: Error installing laravel through composer in docker
body: <p>I'm having a problem installing laravel through a dockerfile. I'm using docker-compose that pulls a dockerfile where I basically have this:</p>
  
  <pre><code>FROM php:7.3-apache-stretch
  
  *some apt-get and install composer*
  
  WORKDIR /var/www
  
  RUN composer create-project --prefer-dist laravel/laravel app
  
  CMD apachectl -D FOREGROUND
  </code></pre>
  
  <p>but when I access the container and I will see the files that should have been created with the composer I see that it is empty even though I have seen the command executed in the container build.</p>
  
  <p>The container is working perfectly and even I can access it ... only files that do not even appear.</p>
  
  <p>If I run the composer command manually after the container is created the files appear.</p>