Skip to content

Commit bfe3143

Browse files
Danisand-fence
authored andcommitted
[FIX] Odoo 11.0: add a locale to prevent ascii decode errors
Closes #129
1 parent 199c206 commit bfe3143

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

11.0/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
FROM debian:stretch
22
MAINTAINER Odoo S.A. <[email protected]>
33

4+
# Generate locale C.UTF-8 for postgres and general locale data
5+
ENV DEBIAN_FRONTEND noninteractive
6+
RUN apt-get update -qq && apt-get install -y locales -qq
7+
RUN echo 'C.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
8+
RUN dpkg-reconfigure locales && /usr/sbin/update-locale LANG=C.UTF-8
9+
ENV LANG C.UTF-8
10+
ENV LANGUAGE C.UTF-8
11+
ENV LC_ALL C.UTF-8
12+
413
# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
514
RUN set -x; \
615
apt-get update \

0 commit comments

Comments
 (0)