Projekt

Obecné

Profil

Stáhnout (1.13 KB) Statistiky
| Větev: | Revize:
1
#DEV ONLY DOCKERFILE
2
FROM php:7.4-fpm-alpine
3
RUN apk update; \
4
    apk upgrade; \
5
    apk add --no-cache $PHPIZE_DEPS; \
6
    pecl install xdebug-2.9.5; \
7
    docker-php-ext-enable xdebug; \
8
    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
RUN apk add npm;
13
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
    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
    } > /usr/local/etc/php/conf.d/php-config.ini
(1-1/2)