1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/webmails/rainloop/Dockerfile

41 lines
1.1 KiB
Docker
Raw Normal View History

2018-10-09 23:21:32 +02:00
FROM php:7.2-apache
#Shared layer between rainloop and roundcube
RUN apt-get update && apt-get install -y \
2019-01-24 16:14:33 +02:00
python3 curl python3-pip git \
&& rm -rf /var/lib/apt/lists \
&& echo "ServerSignature Off" >> /etc/apache2/apache2.conf
2018-07-31 00:07:11 +02:00
ENV RAINLOOP_URL https://github.com/RainLoop/rainloop-webmail/releases/download/v1.12.1/rainloop-community-1.12.1.zip
2018-10-11 03:18:35 +02:00
RUN apt-get update && apt-get install -y \
unzip python3-jinja2 \
2018-10-11 03:18:35 +02:00
&& rm -rf /var/www/html/ \
&& mkdir /var/www/html \
&& cd /var/www/html \
&& curl -L -O ${RAINLOOP_URL} \
2018-10-11 03:18:35 +02:00
&& unzip -q *.zip \
&& rm -f *.zip \
&& rm -rf data/ \
&& find . -type d -exec chmod 755 {} \; \
&& find . -type f -exec chmod 644 {} \; \
2018-10-11 03:18:35 +02:00
&& chown -R www-data: * \
&& apt-get purge -y unzip \
&& rm -rf /var/lib/apt/lists
2019-01-24 16:14:33 +02:00
RUN pip3 install git+https://github.com/usrpro/MailuStart.git#egg=mailustart
COPY include.php /var/www/html/include.php
2018-12-07 13:37:40 +02:00
COPY php.ini /php.ini
COPY config.ini /config.ini
COPY default.ini /default.ini
COPY start.py /start.py
EXPOSE 80/tcp
VOLUME ["/data"]
CMD /start.py
2018-10-16 21:38:12 +02:00
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1