1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-23 22:04:47 +02:00
Files
Mailu/webmails/roundcube/Dockerfile

31 lines
916 B
Docker
Raw Normal View History

FROM php:7.2-apache
2018-10-29 01:41:04 +01:00
ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1.3.8/roundcubemail-1.3.8-complete.tar.gz
2018-10-11 03:18:35 +02:00
RUN apt-get update && apt-get install -y \
zlib1g-dev curl python3 \
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/ \
&& cd /var/www \
&& curl -L -O ${ROUNDCUBE_URL} \
&& tar -xf *.tar.gz \
&& rm -f *.tar.gz \
&& mv roundcubemail-* html \
&& 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 \
2018-10-11 03:18:35 +02:00
&& chown -R www-data: logs temp \
&& rm -rf /var/lib/apt/lists
2017-12-04 18:49:42 -05:00
COPY php.ini /usr/local/etc/php/conf.d/roundcube.ini
COPY config.inc.php /var/www/html/config/
2018-10-23 11:58:36 +03:00
COPY start.py /start.py
EXPOSE 80/tcp
VOLUME ["/data"]
2018-10-23 11:58:36 +03:00
CMD /start.py
2018-10-16 21:38:12 +02:00
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1