This tutorial helps to build your own version of the official php
docker image with enabled debug options. Additionaly, this tutorial covers the steps to manualy patch php
sources and manually rebuild it inside the container based on php
official docker image.
Starting from Dec 2023, building tools used to build official php docker image received support of DOCKER_PHP_ENABLE_DEBUG field. So, now it's pretty easy to build needed php
version with --enable-debug
flag.
Steps:
- Clone
docker-library/php
repository todocker-library-php
folder