sendmailanalyzer/docker/Dockerfile
Lukas Elsner b42eb9f01b add support for dockerization
This commit adds a buildable Dockerfile based on the httpd apache2
docker image with sa_cache cron support built in.
It also comes with a docker-compose example file.
2020-04-28 12:02:38 +02:00

30 lines
653 B
Docker

FROM httpd
RUN apt-get update -yqq && apt-get install -y \
build-essential \
cron \
git \
perl \
supervisor \
procps \
libcgi-session-perl \
&& apt-get clean
RUN git clone https://github.com/darold/sendmailanalyzer.git /tmp/sendmailanalyzer
WORKDIR /tmp/sendmailanalyzer
RUN perl Makefile.PL && make && make install && rm -rf /tmp/sendmailanalyzer
WORKDIR /usr/local/sendmailanalyzer
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY httpd.conf /usr/local/apache2/conf/httpd.conf
COPY sa_cache.sh /etc/cron.daily/sa_cache.sh
RUN mkdir -p /var/www/htdocs
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]