From 48c1beb1d6bea061cc27aba639ffd7bb7f08b467 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Mon, 3 Jun 2024 15:00:27 +0200 Subject: [PATCH] fix(dockerfile): intl php extension is not installed In certain scenarios the code in quickstatements tries to call the global `normalizer_normalize` function which is not available unless the `intl` extension is installed. Ticket: https://phabricator.wikimedia.org/T365916 --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c962bd..c57b8cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,13 @@ FROM php:7.2-apache LABEL org.opencontainers.image.source="https://github.com/wbstack/quickstatements" -# For session storage -RUN pecl install redis-4.0.1 && docker-php-ext-enable redis +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends gettext-base=0.19.8.1-9 jq=1.5+dfsg-2+b1 libicu-dev=63.1-6+deb10u3 && \ + rm -rf /var/lib/apt/lists/* && \ + docker-php-ext-configure intl && \ + docker-php-ext-install intl && \ + pecl install redis-4.0.1 && \ + docker-php-ext-enable redis ENV APACHE_DOCUMENT_ROOT /var/www/html/quickstatements/public_html #TODO do 2 tuns in 1 layer.. @@ -28,4 +33,4 @@ COPY --from=composer /installing/classes /var/www/html/magnustools/classes COPY --from=composer /installing/public_html/php /var/www/html/magnustools/public_html/php ENTRYPOINT ["/bin/bash"] -CMD ["/entrypoint.sh"] \ No newline at end of file +CMD ["/entrypoint.sh"]