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.
29 lines
645 B
Docker
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"]
|