docker/Dockerfile
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 31 Mar 2017 11:41:47 +0200
changeset 255 f6460bb9bd8c
parent 9 02aa198f7a2b
permissions -rw-r--r--
[test] Use testutils module now provided by the seda cube

FROM debian:jessie
MAINTAINER Logilab "contact@logilab.fr"

ADD sources.list /etc/apt/sources.list
# The following line is specific to Logilab
RUN rm -f /etc/apt/apt.conf.d/99proxy
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install --no-install-recommends -y mercurial build-essential virtualenv python-virtualenv python-dev gettext libjpeg-dev libfreetype6-dev libxml2-dev libxslt1-dev zlib1g-dev libgecode-dev libpq-dev libfreetype6-dev graphviz yapps2 postgresql-client supervisor
RUN virtualenv /root/venv
ADD requirements.txt /root/venv/requirements.txt
RUN . /root/venv/bin/activate; pip install -r /root/venv/requirements.txt
ADD supervisord.conf /etc/supervisor/conf.d/cubicweb-seda.conf
VOLUME /var/log
WORKDIR /root
EXPOSE 8080
CMD ["/usr/bin/supervisord", "--nodaemon"]