Skip to content

Commit

Permalink
Add php intl extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusklocke committed Jan 17, 2025
1 parent 2b50b34 commit 7eb2cab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/php/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV APP_VERSION=${APP_VERSION}
ENV PHP_VERSION=${PHP_VERSION}

# Install packages for PHP and extensions
RUN PHP_EXTENSIONS="apcu bcmath ctype curl dom fileinfo fpm gmp mbstring opcache pcntl pdo_mysql pdo_pgsql phar redis simplexml sockets tokenizer xml xmlreader xmlwriter" \
RUN PHP_EXTENSIONS="apcu bcmath ctype curl dom fileinfo fpm gmp intl mbstring opcache pcntl pdo_mysql pdo_pgsql phar redis simplexml sockets tokenizer xml xmlreader xmlwriter" \
&& PHP_PACKAGE="php${PHP_VERSION/./}" \
&& PHP_SUBPACKAGES="" \
&& for EXTENSION in ${PHP_EXTENSIONS}; do \
Expand All @@ -16,7 +16,7 @@ RUN PHP_EXTENSIONS="apcu bcmath ctype curl dom fileinfo fpm gmp mbstring opcache
&& set -ex \
&& apk update \
&& apk upgrade \
&& apk add --no-cache curl fcgi ${PHP_PACKAGE} ${PHP_SUBPACKAGES} \
&& apk add --no-cache curl fcgi icu-data-full ${PHP_PACKAGE} ${PHP_SUBPACKAGES} \
&& ln -s /etc/${PHP_PACKAGE} /etc/php \
&& test -e /usr/sbin/php-fpm || ln -s /usr/sbin/php-fpm${PHP_VERSION/./} /usr/sbin/php-fpm \
&& test -e /usr/bin/php || ln -s /usr/bin/${PHP_PACKAGE} /usr/bin/php \
Expand Down
4 changes: 2 additions & 2 deletions docker/php/roadrunner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV APP_VERSION=${APP_VERSION}
ENV PHP_VERSION=${PHP_VERSION}

# Install packages for PHP and extensions
RUN PHP_EXTENSIONS="apcu bcmath ctype curl dom fileinfo gmp mbstring opcache pcntl pdo_mysql pdo_pgsql phar redis simplexml sockets tokenizer xml xmlreader xmlwriter" \
RUN PHP_EXTENSIONS="apcu bcmath ctype curl dom fileinfo gmp intl mbstring opcache pcntl pdo_mysql pdo_pgsql phar redis simplexml sockets tokenizer xml xmlreader xmlwriter" \
&& PHP_PACKAGE="php${PHP_VERSION/./}" \
&& PHP_SUBPACKAGES="" \
&& for EXTENSION in ${PHP_EXTENSIONS}; do \
Expand All @@ -19,7 +19,7 @@ RUN PHP_EXTENSIONS="apcu bcmath ctype curl dom fileinfo gmp mbstring opcache pcn
&& set -ex \
&& apk update \
&& apk upgrade \
&& apk add --no-cache curl ${PHP_PACKAGE} ${PHP_SUBPACKAGES} \
&& apk add --no-cache curl icu-data-full ${PHP_PACKAGE} ${PHP_SUBPACKAGES} \
&& ln -s /etc/${PHP_PACKAGE} /etc/php \
&& test -e /usr/bin/php || ln -s /usr/bin/${PHP_PACKAGE} /usr/bin/php \
&& adduser -u 82 -D -S -G www-data www-data \
Expand Down

0 comments on commit 7eb2cab

Please sign in to comment.