Update PHP config for memory limit

Added a new configuration to set the PHP memory limit to unlimited. This change helps prevent memory-related issues during execution.
This commit is contained in:
Jeroen De Meerleer 2025-01-21 16:48:11 +01:00
parent 0fc2298106
commit 9de00a6421
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -22,6 +22,7 @@ RUN set -eux;install-php-extensions zip
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN printf "[PHP]\ndate.timezone = \"$TZ\"\n" > /usr/local/etc/php/conf.d/tzone.ini RUN printf "[PHP]\ndate.timezone = \"$TZ\"\n" > /usr/local/etc/php/conf.d/tzone.ini
RUN printf "[PHP]\nmemory_limit = -1\n" > /usr/local/etc/php/conf.d/zzz-memory-limit.ini
COPY wait-for-it.sh /usr/local/bin/wait-for-it.sh COPY wait-for-it.sh /usr/local/bin/wait-for-it.sh
COPY entrypoint.daemon.sh /usr/local/bin/entrypoint.sh COPY entrypoint.daemon.sh /usr/local/bin/entrypoint.sh