1 |
b332d98a
|
ballakt
|
#DEV ONLY DOCKERFILE
|
2 |
|
|
FROM php:7.4-fpm-alpine
|
3 |
|
|
RUN apk update; \
|
4 |
a60193de
|
ballakt
|
apk upgrade; \
|
5 |
3da0c6f3
|
Tomáš Ballák
|
apk add --no-cache $PHPIZE_DEPS; \
|
6 |
|
|
pecl install xdebug-2.9.5; \
|
7 |
|
|
docker-php-ext-enable xdebug; \
|
8 |
a60193de
|
ballakt
|
apk add autoconf openssl-dev g++ make && \
|
9 |
|
|
pecl install mongodb && \
|
10 |
|
|
docker-php-ext-enable mongodb; \
|
11 |
|
|
apk del --purge autoconf openssl-dev g++ make;
|
12 |
8feb1753
|
ballakt
|
RUN apk add npm;
|
13 |
b332d98a
|
ballakt
|
RUN echo "**** install PHP Composer ****\n" && \
|
14 |
|
|
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
|
15 |
|
|
RUN rm -rf /usr/local/etc/php/conf.d/docker-php-ext-igbinary.ini;
|
16 |
|
|
RUN rm -fr /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini;
|
17 |
|
|
RUN { \
|
18 |
a60193de
|
ballakt
|
echo '[xdebug]'; \
|
19 |
|
|
echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)"; \
|
20 |
|
|
echo 'xdebug.remote_enable = 1'; \
|
21 |
|
|
echo 'xdebug.remote_port = 9001'; \
|
22 |
|
|
echo 'xdebug.remote_autostart = 1'; \
|
23 |
|
|
echo 'xdebug.remote_connect_back = 0'; \
|
24 |
|
|
echo 'xdebug.remote_host = localhost'; \
|
25 |
|
|
echo 'xdebug.idekey = VSCODE'; \
|
26 |
|
|
echo 'xdebug.remote_log=/var/www/symfony/xdebug/xdebug.log'; \
|
27 |
b332d98a
|
ballakt
|
} > /usr/local/etc/php/conf.d/php-config.ini
|