Skip to content

Commit

Permalink
Merge pull request #4 from envoymediagroup/ra-minimize-memory-exhausted
Browse files Browse the repository at this point in the history
minimize RleHelper memory exhaustions
  • Loading branch information
orgito authored Feb 3, 2025
2 parents e12dc94 + 82a6fa4 commit 141ac45
Show file tree
Hide file tree
Showing 8 changed files with 318 additions and 410 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.0.11-alpine3.14
FROM php:8.4.3-alpine3.21
ENV TIMEZONE=America/Los_Angeles
ENV COMPOSER_DISABLE_XDEBUG_WARN=1

Expand All @@ -7,17 +7,19 @@ SHELL ["/bin/ash", "-exo", "pipefail", "-c"]
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" \
&& sed -i -E 's/^expose_php = On/expose_php = Off/' $PHP_INI_DIR/php.ini-production \
&& sed -i -E "s|^.?date.timezone =.*|date.timezone = ${TIMEZONE}|g" $PHP_INI_DIR/php.ini* \
&& apk add --no-cache --update linux-headers \
&& apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
&& echo $TIMEZONE > /etc/timezone \
&& apk add --no-cache git \
&& apk add --no-cache $PHPIZE_DEPS \
&& pecl install xdebug-3.1.1 \
&& pecl install xdebug-3.4.1 \
&& docker-php-ext-enable xdebug \
&& apk del --purge $PHPIZE_DEPS \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& git config --global --add safe.directory /app

WORKDIR /app
COPY . /app

CMD ["php", "-a"]
CMD ["php", "-a"]
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"secure-http": false
},
"require-dev": {
"phpunit/phpunit": "^9",
"phpunit/phpunit": "^10",
"nikic/php-parser": "^4.14"
},
"require": {
Expand Down
Loading

0 comments on commit 141ac45

Please sign in to comment.