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