2015-12-12 14:17:30 +01:00
|
|
|
FROM ubuntu:trusty
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
python-pbs \
|
|
|
|
wget
|
|
|
|
|
2016-11-20 03:52:59 +01:00
|
|
|
RUN locale-gen en_US.UTF-8
|
|
|
|
|
2015-12-12 14:17:30 +01:00
|
|
|
RUN useradd -d /home/zulip -m zulip && echo 'zulip ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
|
|
|
|
|
|
USER zulip
|
2016-06-17 05:04:46 +02:00
|
|
|
|
|
|
|
RUN ln -nsf /srv/zulip ~/zulip
|
|
|
|
|
2016-11-21 22:55:18 +01:00
|
|
|
RUN echo 'export LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8"' >> ~zulip/.bashrc
|
2016-11-20 03:52:59 +01:00
|
|
|
|
2015-12-12 14:17:30 +01:00
|
|
|
WORKDIR /srv/zulip
|
2016-11-22 20:14:08 +01:00
|
|
|
|
2016-11-22 01:44:16 +01:00
|
|
|
CMD ["/srv/zulip/tools/provision.py", "--docker"]
|
2016-11-22 20:14:08 +01:00
|
|
|
CMD ["source /srv/zulip-venv/bin/activate"]
|
|
|
|
CMD ["./srv/zulip/tools/start-dockers"]
|
|
|
|
|
|
|
|
EXPOSE 9991
|