[FIX] Odoo 11.0: add a locale to prevent ascii decode errors

Closes #129
This commit is contained in:
Daniel Blanco 2017-10-17 09:23:41 -03:00 committed by Christophe Monniez
parent 199c206737
commit bfe3143479

View File

@ -1,6 +1,15 @@
FROM debian:stretch FROM debian:stretch
MAINTAINER Odoo S.A. <info@odoo.com> MAINTAINER Odoo S.A. <info@odoo.com>
# 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 # Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
RUN set -x; \ RUN set -x; \
apt-get update \ apt-get update \