|
|
@ -1,11 +1,11 @@
|
|
|
|
# Engelsystem PHP FPM development image including Xdebug
|
|
|
|
# Engelsystem PHP FPM development image including Xdebug
|
|
|
|
FROM php:7-fpm-alpine AS es_php_fpm
|
|
|
|
FROM php:8-fpm-alpine AS es_php_fpm
|
|
|
|
WORKDIR /var/www
|
|
|
|
WORKDIR /var/www
|
|
|
|
RUN apk add --no-cache icu-dev $PHPIZE_DEPS && \
|
|
|
|
RUN apk add --no-cache icu-dev $PHPIZE_DEPS && \
|
|
|
|
pecl install pcov xdebug && \
|
|
|
|
pecl install pcov xdebug && \
|
|
|
|
docker-php-ext-install intl pdo_mysql && \
|
|
|
|
docker-php-ext-install intl pdo_mysql && \
|
|
|
|
docker-php-ext-enable pcov xdebug
|
|
|
|
docker-php-ext-enable pcov xdebug
|
|
|
|
RUN echo -e "xdebug.remote_enable=1\nxdebug.remote_connect_back=1\n" >> /usr/local/etc/php/conf.d/xdebug.ini
|
|
|
|
RUN echo -e "xdebug.mode=debug\nxdebug.discover_client_host=1\n" >> /usr/local/etc/php/conf.d/xdebug.ini
|
|
|
|
|
|
|
|
|
|
|
|
ENV TRUSTED_PROXIES 10.0.0.0/8,::ffff:10.0.0.0/8,\
|
|
|
|
ENV TRUSTED_PROXIES 10.0.0.0/8,::ffff:10.0.0.0/8,\
|
|
|
|
127.0.0.0/8,::ffff:127.0.0.0/8,\
|
|
|
|
127.0.0.0/8,::ffff:127.0.0.0/8,\
|
|
|
|