add extentions

This commit is contained in:
holzi1005 2025-01-20 21:00:44 +01:00
parent 2378a77b2f
commit ed5a41a2fd

View file

@ -2,6 +2,11 @@ ARG PHP_IMAGE_VERSION=3.20.6
FROM thecodingmachine/php:8.3-v4-fpm-node22 AS builder FROM thecodingmachine/php:8.3-v4-fpm-node22 AS builder
ARG VERSION ARG VERSION
ENV PHP_EXTENSION_LDAP=1
ENV PHP_EXTENSION_INTL=1
ENV PHP_EXTENSION_BCMATH=1
ENV COMPOSER_MEMORY_LIMIT=-1
COPY . /var/www/html COPY . /var/www/html
USER root USER root
@ -40,10 +45,6 @@ LABEL version="${VERSION}" \
USER root USER root
RUN apk --no-cache add \ RUN apk --no-cache add \
unzip \
sqlite \
php83-sqlite3 \
php83-pdo_sqlite \
php83-ldap \ php83-ldap \
php83-xmlwriter \ php83-xmlwriter \
php83-xsl \ php83-xsl \
@ -97,10 +98,9 @@ RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/03-symfony.sh \
USER nobody USER nobody
COPY --from=builder /artifact.tgz artifact.tgz COPY --from=builder /artifact.tgz artifact.tgz
RUN tar -zxvf artifact.tgz \ RUN tar -zxvf artifact.tgz \
&& rm artifact.tgz \ && rm artifact.tgz
&& rm -r var/cache
ENV nginx_root_directory=/var/www/html/public \ ENV nginx_root_directory=/var/www/html/public \
memory_limit=1024M \ memory_limit=1024M \