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