docker-alpine-php icon indicating copy to clipboard operation
docker-alpine-php copied to clipboard

Xdebug + composer support, it's possible?

Open mmi-rperez opened this issue 9 years ago • 3 comments

Hi there, I am looking for the smaller php-fpm image around and I think this is exactly what I need, although is there any chance to add Xdebug and Composer support? Let's said I want to use this image for develop using Symfony2 or Laravel which uses Composer and I would like also to debug my code, can you help me to achieve this?

mmi-rperez avatar Oct 04 '16 14:10 mmi-rperez

you can modify the Dockerbuild file by adding php7-xdebug or php5-xdebug in the installation instruction, and build your own image.

matriphe avatar Oct 04 '16 14:10 matriphe

@matriphe I've tried for PHp56 but it fails although the extension does exists

ERROR: unsatisfiable constraints:
  php5-xdebug (missing):
    required by: world[php5-xdebug]

What could be wrong?

reypm avatar Oct 04 '16 15:10 reypm

I think you should try PHP7. I just merged PR #6 so i suggest you to look at it.

matriphe avatar Oct 04 '16 15:10 matriphe