Sign inSign up

jalmatari/php-extended

By jalmatari

•Updated over 1 year ago

Image
0

406

jalmatari/php-extended repository overview

FROM php:8.3-fpm

⁠Install system dependencies

RUN apt-get update && apt-get install -y
git
libzip-dev
unzip
libgmp-dev
libicu-dev
libxml2-dev
libpng-dev
curl
wget
libbrotli-dev

⁠Configure and install PHP extensions

RUN docker-php-ext-configure gmp
&& docker-php-ext-install pdo pdo_mysql zip gmp bcmath intl soap pcntl gd
&& pecl install redis xdebug swoole
&& docker-php-ext-enable redis xdebug swoole

⁠Configure Xdebug (modify as per your needs)

RUN echo 'xdebug.mode=debug' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
&& echo 'xdebug.client_host=host.docker.internal' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
&& echo 'xdebug.start_with_request=yes' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

⁠Expose port 9000 for PHP-FPM

EXPOSE 9000

⁠Set the working directory inside the container

WORKDIR /var/www/html

⁠Start PHP-FPM

CMD ["php-fpm"]

Tag summary

Content type

Image

Digest

sha256:dc021a458…

Size

234.3 MB

Last updated

over 1 year ago

docker pull jalmatari/php-extended