From 16d5988408434e4678f3bf6318aabad542dec4ee Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Wed, 1 Nov 2017 21:33:20 +0100 Subject: [PATCH] [REF] Odoo 11.0: simplify locale settings locale settings does not need to re-genreate c.utf-8 as it's already included in Debian Stretch. Also LANG is enough to define the locale needed by Odoo. Finaly, apt-get does not really need to be explicitly set in non interactive mode. apt-get is able to do the right thing. Thanks @tianon --- 11.0/Dockerfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/11.0/Dockerfile b/11.0/Dockerfile index 280c7a0..4e9c814 100644 --- a/11.0/Dockerfile +++ b/11.0/Dockerfile @@ -2,13 +2,7 @@ FROM debian:stretch MAINTAINER Odoo S.A. # Generate locale C.UTF-8 for postgres and general locale data -ENV DEBIAN_FRONTEND noninteractive -RUN apt-get update -qq && apt-get install -y locales -qq -RUN echo 'C.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen -RUN dpkg-reconfigure locales && /usr/sbin/update-locale LANG=C.UTF-8 ENV LANG C.UTF-8 -ENV LANGUAGE C.UTF-8 -ENV LC_ALL C.UTF-8 # Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf RUN set -x; \