FROM python:2.7 MAINTAINER Abhilash Raj RUN apt-get update \ && apt-get install -y ruby-sass \ git \ postgresql-client \ && python -m pip install git+https://gitlab.com/mailman/mailmanclient.git \ git+https://gitlab.com/mailman/postorius.git \ git+https://gitlab.com/mailman/django-mailman3.git \ git+https://gitlab.com/mailman/hyperkitty.git \ whoosh \ uwsgi \ psycopg2 ADD mailman-web /opt/mailman-web ADD assets/run.sh /opt/run.sh WORKDIR /opt/mailman-web EXPOSE 8000 ENV UWSGI_WSGI_FILE=wsgi.py UWSGI_HTTP=:8000 UWSGI_WORKERS=2 \ UWSGI_THREADS=4 CMD ["/opt/run.sh"]