Files
OSIT-Mailman3/web/Dockerfile
Abhilash Raj 12e8b04128 Add psycopg2 in mailman-web container.
Copy the settings file from /opt/mailman/web/ in the host system which
is supposed to be mounted at /opt/mailman-web-data/ in the container.
2017-03-29 22:27:06 -07:00

29 lines
645 B
Docker

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"]