Files
OSIT-Mailman3/core/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

23 lines
546 B
Docker

FROM python:3.5
MAINTAINER Abhilash Raj
# Install the latest master branch of the mailman directly
# from the Gitlab.
RUN apt-get update && apt-get install -y postgresql-client \
&& pip install git+https://gitlab.com/mailman/mailman.git \
psycopg2
ADD assets/run.sh /opt/run.sh
# Pidproxy is our sort-of process watcher that sends any
# signal that it receives to the mailman's master process.
ADD assets/pidproxy.py /opt/pidproxy.py
# Change the working directory.
WORKDIR /opt/mailman
EXPOSE 8001
CMD ["/opt/run.sh"]