skip to Main Content

Xdebug runs out of memory with PHPUnit – Docker

Maybe memory overflow isn't the correct description of what happening, but the point is: PHPUnit eat all of the memory and then dies the container. Here is my phpunit.dockerfile: FROM php:8.1-fpm-alpine WORKDIR /var/www/html RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted…

VIEW QUESTION

How to add xdebug to php:8.1-fpm-alpine Docker container?

I have this dockerfile for my phpunit container: FROM php:8.1-fpm-alpine WORKDIR /var/www/html RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted gnu-libiconv ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php ENV PHP_MEMORY_LIMIT=1G ENV PHP_UPLOAD_MAX_FILESIZE: 512M ENV PHP_POST_MAX_SIZE: 512M RUN docker-php-ext-install pdo RUN apk add --no-cache libpng…

VIEW QUESTION
Back To Top
Search