2019-06-24 06:51:33 +02:00
|
|
|
FROM php:7.3-apache
|
2018-10-31 19:17:23 +02:00
|
|
|
#Shared layer between rainloop and roundcube
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2019-01-24 16:14:33 +02:00
|
|
|
python3 curl python3-pip git \
|
2018-12-21 19:00:01 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists \
|
|
|
|
&& echo "ServerSignature Off" >> /etc/apache2/apache2.conf
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2019-07-25 10:33:57 +02:00
|
|
|
# Shared layer between nginx, dovecot, postfix, postgresql, rspamd, unbound, rainloop, roundcube
|
|
|
|
RUN pip3 install socrate
|
|
|
|
|
2019-08-29 23:16:46 +02:00
|
|
|
ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1.3.10/roundcubemail-1.3.10-complete.tar.gz
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2018-10-11 03:18:35 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2019-06-24 21:18:18 +02:00
|
|
|
zlib1g-dev libzip4 libzip-dev \
|
|
|
|
python3-jinja2 \
|
2018-10-11 03:18:35 +02:00
|
|
|
&& docker-php-ext-install zip \
|
|
|
|
&& echo date.timezone=UTC > /usr/local/etc/php/conf.d/timezone.ini \
|
|
|
|
&& rm -rf /var/www/html/ \
|
2017-09-17 19:19:28 +02:00
|
|
|
&& cd /var/www \
|
2016-02-24 08:44:49 +02:00
|
|
|
&& curl -L -O ${ROUNDCUBE_URL} \
|
|
|
|
&& tar -xf *.tar.gz \
|
|
|
|
&& rm -f *.tar.gz \
|
2017-09-17 19:19:28 +02:00
|
|
|
&& mv roundcubemail-* html \
|
|
|
|
&& cd html \
|
2016-02-24 08:44:49 +02:00
|
|
|
&& rm -rf CHANGELOG INSTALL LICENSE README.md UPGRADING composer.json-dist installer \
|
2017-12-17 15:35:14 +02:00
|
|
|
&& sed -i 's,mod_php5.c,mod_php7.c,g' .htaccess \
|
2018-10-11 03:18:35 +02:00
|
|
|
&& chown -R www-data: logs temp \
|
|
|
|
&& rm -rf /var/lib/apt/lists
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2018-12-07 13:37:40 +02:00
|
|
|
COPY php.ini /php.ini
|
2017-09-17 19:19:28 +02:00
|
|
|
COPY config.inc.php /var/www/html/config/
|
2018-10-23 10:58:36 +02:00
|
|
|
COPY start.py /start.py
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2018-09-28 17:12:50 +02:00
|
|
|
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
|