From bfe3143479f365d4598411b1dae5f8d85e084882 Mon Sep 17 00:00:00 2001 From: Daniel Blanco Date: Tue, 17 Oct 2017 09:23:41 -0300 Subject: [PATCH] [FIX] Odoo 11.0: add a locale to prevent ascii decode errors Closes #129 --- 11.0/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/11.0/Dockerfile b/11.0/Dockerfile index 5b84152..5899f3b 100644 --- a/11.0/Dockerfile +++ b/11.0/Dockerfile @@ -1,6 +1,15 @@ 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; \ apt-get update \