[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
This commit is contained in:
parent
feac9b2423
commit
16d5988408
@ -2,13 +2,7 @@ FROM debian:stretch
|
||||
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
|
||||
RUN set -x; \
|
||||
|
Loading…
Reference in New Issue
Block a user