Add UTF-8 locale to Dockerfile

This fixes an issue with pip crashing on several package installs due to
non-ASCII charsets.
This commit is contained in:
Alok Puranik
2016-11-19 21:52:59 -05:00
committed by Tim Abbott
parent ffb3291c82
commit 0889ea583f

View File

@@ -6,10 +6,14 @@ RUN apt-get update && apt-get install -y \
python-pbs \ python-pbs \
wget wget
RUN locale-gen en_US.UTF-8
RUN useradd -d /home/zulip -m zulip && echo 'zulip ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers RUN useradd -d /home/zulip -m zulip && echo 'zulip ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER zulip USER zulip
RUN ln -nsf /srv/zulip ~/zulip RUN ln -nsf /srv/zulip ~/zulip
RUN echo 'export LC_ALL="en_US.UTF-8"' >> ~zulip/.bashrc
WORKDIR /srv/zulip WORKDIR /srv/zulip