Dockerfile 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. FROM uniqrn/perl-fcgi
  2. MAINTAINER Paul Klumpp
  3. ENV HTDOCS /usr/local/apache2/htdocs
  4. ENV DATA /opt/dada
  5. WORKDIR $HTDOCS
  6. VOLUME ["$DATA", "$HTDOCS"]
  7. RUN usermod -d $DATA daemon
  8. RUN mkdir -p $DATA && chown -R daemon:daemon $DATA && chmod 2755 $DATA
  9. RUN apt-get update -y && apt-get upgrade -y && apt-get install -y apt-utils
  10. RUN apt-get install -y cron curl build-essential vim
  11. RUN apt-get install -y libxml-perl libsoap-lite-perl libdbd-mysql-perl libnet-dns-perl libhtml-tree-perl libio-socket-ssl-perl libcrypt-ssleay-perl libxmlrpc-lite-perl libgravatar-url-perl
  12. #ENV PERL_MM_USE_DEFAULT=1
  13. #ENV PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"
  14. RUN curl -L https://cpanmin.us | perl - --force App::cpanminus
  15. RUN apt-get install -y pkg-config libgd-dev libcurl4-openssl-dev libxml2-dev
  16. RUN cpanm -i Image::Resize WWW::StopForumSpam CSS::Inliner Bundle::DadaMail # this failed so hard before.
  17. COPY httpd.conf /usr/local/apache2/conf/
  18. #COPY ./dada-10_7_0.tar.gz ./
  19. ADD https://downloads.sourceforge.net/project/dadamail/dada-10_7_0.tar.gz?r=http%3A%2F%2Fdadamailproject.com%2Fsupport%2Fdocumentation-10_7_0%2Finstall_dada_mail.pod.html&ts=1501887836&use_mirror=netcologne ./dada-10_7_0.tar.gz
  20. ADD https://raw.github.com/justingit/dada-mail/v10_7_0-stable_2017_07_05/uncompress_dada.cgi ./
  21. RUN chmod 0755 uncompress_dada.cgi && /usr/bin/perl -T uncompress_dada.cgi && rm uncompress_dada.cgi
  22. RUN echo '*/5 * * * * /usr/bin/curl --user-agent "Mozilla/5.0 (compatible;)" --silent --get --url http://localhost/dada/mail.cgi/_schedules/_all/_all/_silent/' > /var/spool/cron/crontabs/root
  23. RUN mkdir -p $HTDOCS/dada_mail_support_files && chown -R daemon:daemon $HTDOCS && chmod 2755 $HTDOCS
  24. USER root
  25. CMD service cron start && httpd-foreground
  26. # http://localhost:8080/dada/installer/install.cgi