mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
8fb3c688e7
1267: Update roundcube to 1.4.0 and enable new elastic skin r=hoellen a=hoellen ## What type of PR? enhancement ## What does this PR do? This PR brings the new roundcube 1.4.0 release with the new elastic skin. ![grafik](https://user-images.githubusercontent.com/11299996/69373290-c86cd680-0ca3-11ea-8dd5-d76beafc65a6.png) ![grafik](https://user-images.githubusercontent.com/11299996/69373358-e6d2d200-0ca3-11ea-8b92-3b8a528eb6c0.png) As an idea we could integrate the Mailu logo in a next step to customize the webmail client a bit. ## Prerequistes Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [x] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file. Co-authored-by: hoellen <dev@hoellen.eu>
50 lines
1.6 KiB
Docker
50 lines
1.6 KiB
Docker
# NOTE: only add file if building for arm
|
|
ARG ARCH=""
|
|
ARG QEMU=other
|
|
FROM ${ARCH}php:7.3-apache as build_arm
|
|
ONBUILD COPY --from=balenalib/rpi-alpine:3.10 /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static
|
|
|
|
FROM ${ARCH}php:7.3-apache as build_other
|
|
|
|
FROM build_${QEMU}
|
|
#Shared layer between rainloop and roundcube
|
|
RUN apt-get update && apt-get install -y \
|
|
python3 curl python3-pip git python3-multidict \
|
|
&& 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.4.1/roundcubemail-1.4.1-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 \
|
|
&& sed -i 's,^php_value.*post_max_size,#&,g' .htaccess \
|
|
&& sed -i 's,^php_value.*upload_max_filesize,#&,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
|