2016-09-03 14:10:42 +02:00
|
|
|
FROM php:5-apache
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2018-06-04 21:41:18 +02:00
|
|
|
unzip python3 python3-jinja2
|
2016-09-03 14:10:42 +02:00
|
|
|
|
2018-05-01 18:55:42 +02:00
|
|
|
ENV RAINLOOP_URL https://github.com/RainLoop/rainloop-webmail/releases/download/v1.12.0/rainloop-community-1.12.0.zip
|
2016-09-03 14:10:42 +02:00
|
|
|
|
2016-10-30 12:33:29 +02:00
|
|
|
RUN rm -rf /var/www/html/ \
|
2017-09-17 19:19:28 +02:00
|
|
|
&& mkdir /var/www/html \
|
|
|
|
&& cd /var/www/html \
|
2016-09-03 14:10:42 +02:00
|
|
|
&& curl -L -O ${RAINLOOP_URL} \
|
|
|
|
&& unzip *.zip \
|
|
|
|
&& rm -f *.zip \
|
|
|
|
&& rm -rf data/ \
|
|
|
|
&& find . -type d -exec chmod 755 {} \; \
|
|
|
|
&& find . -type f -exec chmod 644 {} \; \
|
|
|
|
&& chown -R www-data: *
|
|
|
|
|
2017-09-17 19:19:28 +02:00
|
|
|
COPY include.php /var/www/html/include.php
|
2017-07-02 17:22:54 +02:00
|
|
|
COPY php.ini /usr/local/etc/php/conf.d/rainloop.ini
|
2016-09-03 14:10:42 +02:00
|
|
|
|
|
|
|
COPY config.ini /config.ini
|
|
|
|
COPY default.ini /default.ini
|
|
|
|
|
2018-06-04 21:41:18 +02:00
|
|
|
COPY start.py /start.py
|
2016-09-03 14:10:42 +02:00
|
|
|
|
2018-06-04 21:41:18 +02:00
|
|
|
CMD /start.py
|