PHP images with Composer and Xdebug
446
Use for development. pdo_mysql extension is enabled.
For source images, see https://hub.docker.com/_/php. More about Composer: https://getcomposer.org/. More about Xdebug: https://xdebug.org/.
$ docker run --rm -p 8080:80 -v /path/to/your/project:/opt/project --name my_php_app wisuar/php:latest php -S 0.0.0.0:80 -t /opt/project/path/to/public_html
This command starts your PHP application named my_php_app on port 8080 and removes itself after stopped. Your local files should be under /path/to/your/project and the entry point (usually index.php) should be under path/to/public_html.
Content type
Image
Digest
sha256:924825df3…
Size
43.5 MB
Last updated
almost 2 years ago
docker pull wisuar/php