Skip to content

Instantly share code, notes, and snippets.

@rayrutjes
Created August 9, 2015 11:52
Show Gist options
  • Save rayrutjes/c04e050453c8c0b55b37 to your computer and use it in GitHub Desktop.
Save rayrutjes/c04e050453c8c0b55b37 to your computer and use it in GitHub Desktop.
Official php dockerfile with xdebug
FROM php:5.6-fpm
RUN curl -L -o /tmp/xdebug-2.3.3.tgz http://xdebug.org/files/xdebug-2.3.3.tgz \
&& tar xfz /tmp/xdebug-2.3.3.tgz \
&& rm -r /tmp/xdebug-2.3.3.tgz \
&& mv xdebug-2.3.3 /usr/src/php/ext/xdebug \
&& docker-php-ext-install xdebug
CMD ["php-fpm"]
@baptistedonaux
Copy link

Great ! Exactly the solution for my problem. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment