mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
31 lines
722 B
Docker
31 lines
722 B
Docker
FROM php:7.2-apache
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
unzip python3 python3-jinja2
|
|
|
|
ENV RAINLOOP_URL https://github.com/RainLoop/rainloop-webmail/releases/download/v1.12.1/rainloop-community-1.12.1.zip
|
|
|
|
RUN rm -rf /var/www/html/ \
|
|
&& mkdir /var/www/html \
|
|
&& cd /var/www/html \
|
|
&& 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: *
|
|
|
|
COPY include.php /var/www/html/include.php
|
|
COPY php.ini /usr/local/etc/php/conf.d/rainloop.ini
|
|
|
|
COPY config.ini /config.ini
|
|
COPY default.ini /default.ini
|
|
|
|
COPY start.py /start.py
|
|
|
|
EXPOSE 80/tcp
|
|
VOLUME ["/data"]
|
|
|
|
CMD /start.py
|