1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-05-21 07:06:41 +02:00

Language paramétrable dans le dockerfile

This commit is contained in:
Vincent LAURENT 2023-09-27 11:57:36 +02:00
parent e165f152b0
commit 1dc97acc72

View file

@ -6,18 +6,18 @@ ENV POST_MAX_SIZE=24M
ENV MAX_FILE_UPLOADS=201
ENV PDF_STORAGE_PATH=/data
ENV DISABLE_ORGANIZATION=false
ENV PDF_DEMO_LINK=true
ENV DEFAULT_LANGUAGE=fr_FR.UTF-8
RUN apt update && \
apt install -y vim locales gettext-base librsvg2-bin pdftk imagemagick potrace ghostscript && \
docker-php-ext-install gettext && \
rm -rf /var/lib/apt/lists/*
RUN sed -i '/fr_FR.UTF-8/s/^# //g' /etc/locale.gen && \
RUN sed -i "/$DEFAULT_LANGUAGE/s/^# //g" /etc/locale.gen && \
locale-gen
ENV LANG fr_FR.UTF-8
ENV LANGUAGE fr_FR:en
ENV LC_ALL fr_FR.UTF-8
ENV LANG $DEFAULT_LANGUAGE
ENV LANGUAGE $DEFAULT_LANGUAGE
ENV LC_ALL $DEFAULT_LANGUAGE
COPY . /usr/local/signaturepdf