fideloper / docker-nginx-php

An Ubuntu, Nginx and PHP stack Built in Docker
361 stars 142 forks source link

Add x debug #6

Closed geshan closed 10 years ago

geshan commented 10 years ago

how do I add X-Debug to this docker image?

fideloper commented 10 years ago

Within the Dockerfile, just add package "php5-xdebug" to the installs and rebuild a container:

RUN apt-get install -y php5-cli php5-fpm php5-mysql php5-pgsql php5-sqlite php5-curl\
               php5-gd php5-mcrypt php5-intl php5-imap php5-tidy php5-xdebug

You might want to also use a script to configure it at /etc/php5/mods-available/xdebug.ini

geshan commented 10 years ago

thanks.