Skip to content
Snippets Groups Projects
Verified Commit eb8a21ba authored by David Beniamine's avatar David Beniamine
Browse files

Add locale

parent e2de4bb0
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,5 @@ PORT=8080
DOLI_URL=http://localhost:8080
DOLI_VERSION=11.0.3
RESTART=no
LOCALE=en_US.UTF-8
PASS=insert-randomstringhere
......@@ -14,7 +14,10 @@ services:
restart: ${RESTART}
dolibarr:
build: ./docker
build:
context: ./docker
args:
LOCALE: ${LOCALE}
volumes:
- "./dolibarr_src/:/var/www/dolibarr:rw"
environment:
......@@ -28,6 +31,8 @@ services:
CRON_KEY: ${CRON_KEY}
CRON_USER: ${CRON_USER}
ENV: ${ENV}
LC_ALL: ${LOCALE}
LC_C_TYPE: ${LOCALE}
restart: ${RESTART}
links:
- mariadb
FROM debian:bullseye
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get update
......@@ -16,6 +15,7 @@ RUN apt-get install -y \
libldap2-dev\
libxml2-dev\
libzip-dev\
locales \
mariadb-client\
php-bcmath \
php-ctype \
......@@ -58,6 +58,12 @@ COPY install_composer.sh /bin
RUN /bin/install_composer.sh
RUN mv /usr/local/bin/composer.phar /usr/local/bin/composer
ARG LOCALE=en_US-UTF-8
RUN apt-get update
# Uncomment en_US.UTF-8 for inclusion in generation
RUN sed -i "s/^# *\($LOCALE\)/\1/" /etc/locale.gen && locale-gen
WORKDIR /var/www/
RUN mkdir /var/www/custom
COPY entrypoint.sh /
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment