Fix use of locales for python et al

This commit is contained in:
Jody Winston 2016-12-30 12:53:53 -06:00
parent 8fa3245309
commit 704d55988b
1 changed files with 11 additions and 1 deletions

View File

@ -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