title: Execute a build-in PHP server file with Docker
body: <p>I have a php application in Github, and I want to create a Docker image to, automaticaly, clone this application and run a custom server php file (react-php implemented).</p>
  
  <p>This is my point of start.</p>
  
  <pre><code>FROM php:7.1-cli
  
  RUN apt-get update &amp;&amp; \
      apt-get install -y \
          libzip-dev \
          zip \
    &amp;&amp; docker-php-ext-configure zip --with-libzip \
    &amp;&amp; docker-php-ext-install zip bcmath
  
  RUN apt-get install -y \
          git-core \
          curl &amp;&amp; \
      git clone https://github.com/xxx/xxx.git myfolder &amp;&amp; \
      cd myfolder &amp;&amp; \
      curl -sS https://getcomposer.org/installer | php &amp;&amp; \
      php composer.phar install
  
  EXPOSE 8000
  
  CMD ["php bin/server"]
  </code></pre>
  
  <p>This code allows me to build the image, but when I run this image in a container, then I'm not being able to execute the file.</p>
  
  <blockquote>
    <p>/usr/local/bin/docker-php-entrypoint: 9: exec: php bin/server: not
    found</p>
  </blockquote>
  
  <p>Maybe it's because I don't barely understand some bases of Docker, but it's getting hard for me to make this happen.</p>
  
  <p>Any help on that, please?</p>