2017-11-13 00:34:57 +02:00
|
|
|
FROM php:7.0-apache
|
2016-02-24 08:44:49 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libjpeg62-turbo-dev \
|
|
|
|
libmcrypt-dev \
|
|
|
|
libpng12-dev \
|
2017-12-17 15:34:45 +02:00
|
|
|
&& docker-php-ext-install pdo_mysql mcrypt zip
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2018-04-15 15:04:54 +02:00
|
|
|
ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1.3.6/roundcubemail-1.3.6-complete.tar.gz
|
2016-02-24 08:44:49 +02:00
|
|
|
|
|
|
|
RUN echo date.timezone=UTC > /usr/local/etc/php/conf.d/timezone.ini
|
|
|
|
|
2016-10-30 12:33:29 +02:00
|
|
|
RUN 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-02-20 12:37:47 +02:00
|
|
|
&& chown -R www-data: logs temp
|
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
|
|
|
|
|
|
|
|
CMD ["/start.sh"]
|