mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
Previously, we were having issues installing on Debian Stretch with non-English locales, because `locale-gen` actually doesn't take a locale as an argument (and thus `locale-gen en_US.UTF-8` did nothing). We should instead be calling localedef directly. Thanks to Tom Daff for debugging this. Fixes #10629.
18 lines
380 B
Plaintext
18 lines
380 B
Plaintext
FROM ubuntu:trusty
|
|
|
|
EXPOSE 9991
|
|
|
|
RUN apt-get update && apt-get install -y wget
|
|
|
|
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
|
|
|
|
RUN useradd -d /home/zulip -m zulip && echo 'zulip ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
|
|
USER zulip
|
|
|
|
RUN ln -nsf /srv/zulip ~/zulip
|
|
|
|
RUN echo 'export LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8"' >> ~zulip/.bashrc
|
|
|
|
WORKDIR /srv/zulip
|