FROM php:8.1-fpm-alpine ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && \ install-php-extensions mysqli exif imagick zip memcached opcache redis intl xdebug && \ 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 COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer RUN apk add --update nodejs npm WORKDIR /app/public