From 704d55988baefc1d3133b952c3e83482dc53782f Mon Sep 17 00:00:00 2001 From: Jody Winston Date: Fri, 30 Dec 2016 12:53:53 -0600 Subject: [PATCH] Fix use of locales for python et al --- Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c4c30789..c181625a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,16 @@ FROM rethinkdb:2.3 -RUN apt-get update +# From http://stackoverflow.com/a/38553499 + +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales + +RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ + echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \ + dpkg-reconfigure --frontend=noninteractive locales && \ + update-locale LANG=en_US.UTF-8 + +ENV LANG en_US.UTF-8 + RUN apt-get -y install python3 python3-pip libffi-dev RUN pip3 install --upgrade pip RUN pip3 install --upgrade setuptools