mirror of
https://github.com/24eme/signaturepdf
synced 2024-06-03 14:32:13 +02:00
docker: on génère une locale pour activer le i18n
Car sinon il est a POSIX par défaut et l'arabe et le français ne marche pas
This commit is contained in:
parent
155001a900
commit
86fc475095
|
@ -9,10 +9,16 @@ ENV DISABLE_ORGANIZATION=false
|
||||||
ENV PDF_DEMO_LINK=true
|
ENV PDF_DEMO_LINK=true
|
||||||
|
|
||||||
RUN apt update && \
|
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 && \
|
docker-php-ext-install gettext && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
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
|
COPY . /usr/local/signaturepdf
|
||||||
|
|
||||||
RUN envsubst < /usr/local/signaturepdf/config/php.ini > /usr/local/etc/php/conf.d/uploads.ini && \
|
RUN envsubst < /usr/local/signaturepdf/config/php.ini > /usr/local/etc/php/conf.d/uploads.ini && \
|
||||||
|
|
Loading…
Reference in a new issue