Files
OSIT-Mailman3/web/Dockerfile
Abhilash Raj 131d1c0b8a Add a postgres database container.
- Set environemnt variables for Postgresql database in the compose file
- Set environment variables for uwsgi in the compose file
- Check if the postgresql container is up and accepting connections before
  running any actual services.
2017-03-29 21:58:40 -07:00

29 lines
628 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
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"]