title: How to run Docker container with website and php?
body: <p>I have a landing page and one PHP file to send emails (feedback form). I want to test this form using Docker.</p>
  
  <p>I've written this Dockerfile:</p>
  
  <pre><code>FROM php:7.4-cli
  COPY . /usr/src/app
  CMD [ "php", "/mail/contact_me.php"]
  </code></pre>
  
  <p>But it doesn't work for me.</p>
  
  <p>I have the directory <code>mail</code> with the PHP file in the root of the project, but I'm still unsure if the Dockerfile is correct:</p>
  
  <ul>
  <li>Is it enough to inherit <code>FROM php:7.4-cli</code> or do I have to add nginx server to run the image?</li>
  <li>What does the line <code>COPY . /usr/src/app</code> exactly do? Is this correct?</li>
  </ul>