24 lines
933 B
Docker
24 lines
933 B
Docker
FROM php:8.3-cli
|
|
|
|
RUN pecl install redis \
|
|
&& pecl install xdebug \
|
|
&& docker-php-ext-enable redis xdebug
|
|
|
|
|
|
RUN curl -sSLf \
|
|
-o /usr/local/bin/install-php-extensions \
|
|
https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && \
|
|
chmod +x /usr/local/bin/install-php-extensions && \
|
|
install-php-extensions mongodb igbinary imagick gd
|
|
|
|
RUN install-php-extensions zip
|
|
RUN apt update && apt install git -y
|
|
|
|
|
|
RUN echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
|
RUN echo "xdebug.client_host=\"host.docker.internal\"" >> /usr/local/etc/php/conf
|
|
RUN echo "xdebug.start_with_request=default" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
|
RUN curl -o composer-setup.php https://getcomposer.org/installer
|
|
RUN php composer-setup.php --install-dir=/usr/local/bin/ --filename=composer
|
|
RUN install-php-extensions pdo_mysql
|