From 86fc4750959bcda55ea0fbc58dd96ecfa42bc927 Mon Sep 17 00:00:00 2001 From: Gabriel Poma Date: Tue, 26 Sep 2023 15:06:45 +0200 Subject: [PATCH] =?UTF-8?q?docker:=20on=20g=C3=A9n=C3=A8re=20une=20locale?= =?UTF-8?q?=20pour=20activer=20le=20i18n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Car sinon il est a POSIX par défaut et l'arabe et le français ne marche pas --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c79dee1..b47012e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,10 +9,16 @@ ENV DISABLE_ORGANIZATION=false ENV PDF_DEMO_LINK=true RUN apt update && \ - apt install -y gettext-base librsvg2-bin pdftk imagemagick potrace ghostscript && \ + apt install -y locales gettext-base librsvg2-bin pdftk imagemagick potrace ghostscript && \ docker-php-ext-install gettext && \ rm -rf /var/lib/apt/lists/* +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 + COPY . /usr/local/signaturepdf RUN envsubst < /usr/local/signaturepdf/config/php.ini > /usr/local/etc/php/conf.d/uploads.ini && \