build(docker): update PHP extensions configuration
- Removed unnecessary flag from gd configuration. - Added missing libx11 dependency. - Improved php-cli.ini settings formatting.
This commit is contained in:
parent
7eb4d566d5
commit
05571e28f5
1 changed files with 10 additions and 3 deletions
|
|
@ -26,7 +26,6 @@ RUN apk add --no-cache \
|
|||
git
|
||||
|
||||
RUN docker-php-ext-configure gd \
|
||||
--enable-gd \
|
||||
--with-freetype \
|
||||
--with-jpeg \
|
||||
--with-webp \
|
||||
|
|
@ -44,7 +43,9 @@ RUN docker-php-ext-configure gd \
|
|||
sockets \
|
||||
xsl \
|
||||
zip \
|
||||
&& docker-php-ext-install -j"$(nproc)" gd intl ldap
|
||||
gd \
|
||||
intl \
|
||||
ldap
|
||||
|
||||
# redis install
|
||||
RUN curl -fsSL https://github.com/phpredis/phpredis/archive/refs/tags/6.3.0.tar.gz -o /tmp/redis.tar.gz \
|
||||
|
|
@ -89,6 +90,7 @@ RUN apk add --no-cache \
|
|||
libpng \
|
||||
libwebp \
|
||||
libxpm \
|
||||
libx11 \
|
||||
icu-libs \
|
||||
gmp \
|
||||
libxslt \
|
||||
|
|
@ -96,7 +98,12 @@ RUN apk add --no-cache \
|
|||
libzip \
|
||||
libldap \
|
||||
# Php minimal configuration
|
||||
&& printf '# composer php cli ini settings\ndate.timezone=UTC\nmemory_limit=-1\nopcache.enable_cli=1\n' > "$PHP_INI_DIR/php-cli.ini"
|
||||
&& printf '%s\n' \
|
||||
'# composer php cli ini settings' \
|
||||
'date.timezone=UTC' \
|
||||
'memory_limit=-1' \
|
||||
'opcache.enable_cli=1' \
|
||||
> "$PHP_INI_DIR/php-cli.ini"
|
||||
|
||||
ENV COMPOSER_ALLOW_SUPERUSER=1 \
|
||||
COMPOSER_HOME=/tmp
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue