php docker cli code example
Example: php-cli docker example
#index.php
<?php
echo "Hello world";
#Dockerfile
FROM php:7.4-cli
COPY . /usr/src/cli
WORKDIR /usr/src/cli
CMD [ "php", "./index.php" ]
then Run => docker build -t cli .
then Run => docker run -it cli