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 echo "**** install PHP Composer ****\n" && \
13
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
14
RUN rm -rf /usr/local/etc/php/conf.d/docker-php-ext-igbinary.ini;
15
RUN rm -fr /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini;
16
RUN { \
17
        echo '[xdebug]'; \
18
        echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)"; \
19
        echo 'xdebug.remote_enable = 1'; \
20
        echo 'xdebug.remote_port = 9001'; \
21
        echo 'xdebug.remote_autostart = 1'; \
22
        echo 'xdebug.remote_connect_back = 0'; \
23
        echo 'xdebug.remote_host = localhost'; \
24
        echo 'xdebug.idekey = VSCODE'; \
25
        echo 'xdebug.remote_log=/var/www/symfony/xdebug/xdebug.log'; \
26
    } > /usr/local/etc/php/conf.d/php-config.ini
(1-1/2)