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 \
|
|
|
|
&& docker-php-ext-install pdo_mysql mcrypt
|
|
|
|
|
2017-11-13 16:55:18 +02:00
|
|
|
ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1.3.3/roundcubemail-1.3.3-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 \
|
|
|
|
&& chown -R www-data: logs
|
|
|
|
|
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"]
|