From c0d4f58680b4327ab559ef9bdbf90ecdd197ea5a Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Sat, 16 Mar 2024 11:28:20 +0100 Subject: [PATCH] Quick fix: Increase PHP memory limit to let Docker tests pass --- Dockerfile | 1 + docker/php-test.ini | 1 + 2 files changed, 2 insertions(+) create mode 100644 docker/php-test.ini diff --git a/Dockerfile b/Dockerfile index c6ed307a..81300c4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,7 @@ COPY . . RUN mv .env.testing .env RUN composer install RUN php artisan key:generate +COPY docker/php-test.ini /usr/local/etc/php/php.ini ENTRYPOINT [ "/srv/vendor/bin/phpunit" ] FROM alpine:${ALPINE_VERSION} diff --git a/docker/php-test.ini b/docker/php-test.ini new file mode 100644 index 00000000..dc4ad81b --- /dev/null +++ b/docker/php-test.ini @@ -0,0 +1 @@ +memory_limit=2048M \ No newline at end of file