These image dont have any CMD / ENTRYPOINT so we need to add the following to the entrypoint.sh in the final image.
#!/bin/bash
set -e
# YOUR STUFF HERE
echo " "
echo "Changing /var/www/html owner to www-data"
echo "==========================================="
sudo chown -R www-data:www-data /var/www/html/
echo " "
echo "Starting Nginx"
echo "==========================================="
service nginx start
echo " "
echo "Executing PHP-FPM"
echo "==========================================="
php-fpm -D -R
"$@"
Content type
Image
Digest
Size
201 MB
Last updated
over 7 years ago
docker pull spatialy/php-fpm-nginx-base