File tree Expand file tree Collapse file tree 3 files changed +34
-7
lines changed
Expand file tree Collapse file tree 3 files changed +34
-7
lines changed Original file line number Diff line number Diff line change 11FROM php:7.1-fpm
22
3- # Install selected extensions and other stuff
43RUN apt-get update && apt-get install -y \
54 git-core zlib1g-dev \
6- libicu-dev libmcrypt-dev libbz2-dev libxslt-dev curl unzip wget \
7- && docker-php-ext-install -j$(nproc) mysqli intl bcmath mcrypt zip bz2 mbstring pcntl xsl pdo pdo_mysql
5+ libicu-dev libmcrypt-dev libbz2-dev libxslt-dev curl unzip wget telnet \
6+ && docker-php-ext-install -j$(nproc) mysqli intl bcmath zip bz2 mbstring pcntl xsl pdo pdo_mysql
7+
8+ ENV XDEBUG_VERSION 2.6.0
9+
10+ RUN set -xe && \
11+ cd /tmp && \
12+ wget http://xdebug.org/files/xdebug-$XDEBUG_VERSION.tgz && \
13+ tar -xvzf xdebug-$XDEBUG_VERSION.tgz && \
14+ cd xdebug-$XDEBUG_VERSION && \
15+ phpize && \
16+ ./configure && \
17+ make && \
18+ make install && \
19+ rm -rf /tmp/xdebug-$XDEBUG_VERSION
20+
21+ COPY xdebug.ini /usr/local/etc/php/conf.d/20-xdebug.ini
22+ COPY custom.ini /usr/local/etc/php/conf.d/20-custom.ini
823
924# Setup the Composer installer
1025RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \
1126 && curl -o /tmp/composer-setup.sig https://composer.github.io/installer.sig \
1227 && php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== trim(file_get_contents('/tmp/composer-setup.sig'))) { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }"
1328
14- # Install Composer
15- RUN php /tmp/composer-setup.php --no-ansi --install-dir=/usr/local/bin --filename=composer --snapshot && rm -rf /tmp/composer-setup.php
16-
17- WORKDIR "/var/www"
29+ WORKDIR "/var/www"
Original file line number Diff line number Diff line change 1+ display_errors =1
2+ date.timezone =Europe/Vilnius
Original file line number Diff line number Diff line change 1+ [xdebug]
2+ zend_extension =xdebug.so
3+
4+ xdebug.default_enable =1
5+ xdebug.idekey =PHPSTORM
6+ xdebug.serverName =hn.local
7+ xdebug.max_nesting_level =500
8+ xdebug.remote_autostart =1
9+ xdebug.remote_connect_back =0
10+ xdebug.remote_enable =1
11+ xdebug.remote_handler =dbgp
12+ xdebug.remote_port =9000
13+ xdebug.profiler_enable_trigger =1
You can’t perform that action at this time.
0 commit comments