diff --git a/8.0/Dockerfile b/8.0/Dockerfile index 2f7036b..b944a30 100644 --- a/8.0/Dockerfile +++ b/8.0/Dockerfile @@ -54,10 +54,13 @@ COPY ./entrypoint.sh / COPY ./openerp-server.conf /etc/odoo/ RUN chown odoo /etc/odoo/openerp-server.conf -RUN locale-gen en_GB.UTF-8 -ENV LANG en_GB.UTF-8 -ENV LANGUAGE en_GB:en -ENV LC_ALL en_GB.UTF-8 +ARG language=en_GB:en +ARG lang=en_GB.UTF-8 + +RUN locale-gen ${lang} +ENV LANG ${lang} +ENV LANGUAGE ${language} +ENV LC_ALL ${lang} # Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons RUN mkdir -p /mnt/extra-addons \