forked from veluca93/oii-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
17 lines (17 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM ubuntu:14.04
MAINTAINER Luca Versari <[email protected]>
RUN apt-get update
RUN apt-get -y install build-essential fpc postgresql postgresql-client gettext python2.7 python-setuptools python-tornado python-psycopg2 python-sqlalchemy python-psutil python-netifaces python-crypto python-tz python-six iso-codes shared-mime-info stl-manual python-beautifulsoup python-mechanize python-coverage python-mock cgroup-lite python-requests python-werkzeug python-gevent python-yaml python-sphinx texlive texlive-latex-extra nano latexmk pypy python-pip python-numpy patool
RUN pip install sortedcontainers
RUN pip install https://github.com/obag/cms-booklet/archive/master.zip
RUN curl -O https://bootstrap.pypa.io/get-pip.py
RUN pypy get-pip.py
RUN pypy /usr/local/bin/pip install sortedcontainers
RUN apt-get install -y openssh-server supervisor
RUN mkdir -p /var/run/sshd /var/log/supervisor
RUN sed -i 's/StrictModes yes/StrictModes no/' /etc/ssh/sshd_config
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD cgroups-mount && /usr/bin/supervisord
EXPOSE 22 8888 8889 8890
ADD . /cms
RUN cd /cms && ./setup.py build && ./setup.py install && rm -rf /cms