Last active
June 10, 2018 19:10
-
-
Save datio/c61a16eb29f3442db83ba65d3727bf72 to your computer and use it in GitHub Desktop.
XF2 Docker Container: Dockerfile for XenForo2 with Xdebug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:apache | |
RUN apt update && apt upgrade -y && apt-get autoremove -y \ | |
&& apt install -y libfreetype6-dev && apt install -y libpng-dev \ | |
&& apt install -y libjpeg62-turbo-dev && apt install -y libxml2-dev \ | |
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | |
&& docker-php-ext-install gd && docker-php-ext-install mysqli && docker-php-ext-install zip && docker-php-ext-install xml \ | |
&& a2enmod rewrite \ | |
&& yes | pecl install xdebug \ | |
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The docker-compose.yml contents, where I run it from: