1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/webmails/roundcube/Dockerfile

57 lines
1.9 KiB
Docker
Raw Normal View History

# NOTE: only add file if building for arm
2019-08-30 16:24:08 +02:00
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
2020-06-22 16:06:23 +02:00
ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1.4.6/roundcubemail-1.4.6-complete.tar.gz
2019-12-26 21:29:45 +02:00
ENV CARDDAV_URL https://github.com/blind-coder/rcmcarddav/releases/download/v3.0.3/carddav-3.0.3.tar.bz2
2018-10-11 03:18:35 +02:00
RUN apt-get update && apt-get install -y \
2020-03-07 20:38:12 +02:00
zlib1g-dev libzip4 libzip-dev libpq-dev \
python3-jinja2 \
gpg \
2020-03-06 16:55:35 +02:00
&& docker-php-ext-install zip pdo_mysql pdo_pgsql \
2018-10-11 03:18:35 +02:00
&& 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} \
2019-12-26 21:29:45 +02:00
&& curl -L -O ${CARDDAV_URL} \
&& tar -xf *.tar.gz \
2019-12-26 21:29:45 +02:00
&& tar -xf *.tar.bz2 \
&& rm -f *.tar.gz \
2019-12-26 21:29:45 +02:00
&& rm -f *.tar.bz2 \
&& mv roundcubemail-* html \
2019-12-26 21:29:45 +02:00
&& mv carddav html/plugins/ \
&& 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 \
2018-10-11 03:18:35 +02:00
&& chown -R www-data: logs temp \
&& rm -rf /var/lib/apt/lists
2018-12-07 13:37:40 +02:00
COPY php.ini /php.ini
COPY config.inc.php /var/www/html/config/
2018-10-23 10:58:36 +02:00
COPY start.py /start.py
EXPOSE 80/tcp
VOLUME ["/data"]
2018-10-23 10:58:36 +02:00
CMD /start.py
2018-10-16 21:38:12 +02:00
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1