2018-09-25 05:59:31 +02:00
|
|
|
FROM php:7.2-apache
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2018-07-28 22:46:33 +02:00
|
|
|
ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1.3.7/roundcubemail-1.3.7-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 \
|
|
|
|
zlib1g-dev \
|
|
|
|
&& 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
|
|
|
|
2017-12-05 01:49:42 +02:00
|
|
|
COPY php.ini /usr/local/etc/php/conf.d/roundcube.ini
|
2017-12-01 02:16:11 +02:00
|
|
|
|
2017-09-17 19:19:28 +02:00
|
|
|
COPY config.inc.php /var/www/html/config/
|
2016-02-24 08:44:49 +02:00
|
|
|
|
|
|
|
COPY start.sh /start.sh
|
|
|
|
|
2018-09-28 17:12:50 +02:00
|
|
|
EXPOSE 80/tcp
|
|
|
|
VOLUME ["/data"]
|
|
|
|
|
2016-02-24 08:44:49 +02:00
|
|
|
CMD ["/start.sh"]
|