From c965f1ebd9310c77c7c78acb8e3829bd13e1a65a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20S=C3=A4nger?= Date: Thu, 29 Aug 2019 23:16:46 +0200 Subject: [PATCH] update roundcube 1.3.10 (cherry picked from commit 56efc46af8d430b1e47c7b2f64d5cad1afce046e) # Conflicts: # webmails/roundcube/Dockerfile --- webmails/roundcube/Dockerfile | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 webmails/roundcube/Dockerfile diff --git a/webmails/roundcube/Dockerfile b/webmails/roundcube/Dockerfile new file mode 100644 index 00000000..5fe9acbf --- /dev/null +++ b/webmails/roundcube/Dockerfile @@ -0,0 +1,39 @@ +FROM php:7.3-apache +#Shared layer between rainloop and roundcube +RUN apt-get update && apt-get install -y \ + python3 curl python3-pip git \ + && rm -rf /var/lib/apt/lists \ + && echo "ServerSignature Off" >> /etc/apache2/apache2.conf + +# Shared layer between nginx, dovecot, postfix, postgresql, rspamd, unbound, rainloop, roundcube +RUN pip3 install socrate + +ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1.3.10/roundcubemail-1.3.10-complete.tar.gz + +RUN apt-get update && apt-get install -y \ + zlib1g-dev libzip4 libzip-dev \ + python3-jinja2 \ + && docker-php-ext-install zip \ + && echo date.timezone=UTC > /usr/local/etc/php/conf.d/timezone.ini \ + && rm -rf /var/www/html/ \ + && cd /var/www \ + && curl -L -O ${ROUNDCUBE_URL} \ + && tar -xf *.tar.gz \ + && rm -f *.tar.gz \ + && mv roundcubemail-* html \ + && cd html \ + && rm -rf CHANGELOG INSTALL LICENSE README.md UPGRADING composer.json-dist installer \ + && sed -i 's,mod_php5.c,mod_php7.c,g' .htaccess \ + && chown -R www-data: logs temp \ + && rm -rf /var/lib/apt/lists + +COPY php.ini /php.ini +COPY config.inc.php /var/www/html/config/ +COPY start.py /start.py + +EXPOSE 80/tcp +VOLUME ["/data"] + +CMD /start.py + +HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1