|
|
@ -11,7 +11,8 @@ FROM build_${QEMU}
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
python3 curl python3-pip git python3-multidict \
|
|
|
|
python3 curl python3-pip git python3-multidict \
|
|
|
|
&& rm -rf /var/lib/apt/lists \
|
|
|
|
&& rm -rf /var/lib/apt/lists \
|
|
|
|
&& echo "ServerSignature Off" >> /etc/apache2/apache2.conf
|
|
|
|
&& echo "ServerSignature Off\nServerName roundcube" >> /etc/apache2/apache2.conf \
|
|
|
|
|
|
|
|
&& sed -i 's,CustomLog.*combined$,\0 "'"expr=!(%{HTTP_USER_AGENT}=='health'\&\&(-R '127.0.0.1/8' || -R '::1'))"'",' /etc/apache2/sites-available/000-default.conf
|
|
|
|
|
|
|
|
|
|
|
|
# Shared layer between nginx, dovecot, postfix, postgresql, rspamd, unbound, rainloop, roundcube
|
|
|
|
# Shared layer between nginx, dovecot, postfix, postgresql, rspamd, unbound, rainloop, roundcube
|
|
|
|
RUN pip3 install socrate
|
|
|
|
RUN pip3 install socrate
|
|
|
@ -33,11 +34,15 @@ RUN apt-get update && apt-get install -y \
|
|
|
|
&& mv roundcubemail-* html \
|
|
|
|
&& mv roundcubemail-* html \
|
|
|
|
&& mv carddav html/plugins/ \
|
|
|
|
&& mv carddav html/plugins/ \
|
|
|
|
&& cd html \
|
|
|
|
&& cd html \
|
|
|
|
&& rm -rf CHANGELOG INSTALL LICENSE README.md UPGRADING composer.json-dist installer \
|
|
|
|
&& rm -rf CHANGELOG INSTALL LICENSE README.md UPGRADING composer.json-dist installer composer.* \
|
|
|
|
&& sed -i 's,mod_php5.c,mod_php7.c,g' .htaccess \
|
|
|
|
&& sed -i 's,mod_php5.c,mod_php7.c,g' .htaccess \
|
|
|
|
&& sed -i 's,^php_value.*post_max_size,#&,g' .htaccess \
|
|
|
|
&& sed -i 's,^php_value.*post_max_size,#&,g' .htaccess \
|
|
|
|
&& sed -i 's,^php_value.*upload_max_filesize,#&,g' .htaccess \
|
|
|
|
&& sed -i 's,^php_value.*upload_max_filesize,#&,g' .htaccess \
|
|
|
|
&& chown -R www-data: logs temp \
|
|
|
|
&& ln -sf index.php /var/www/html/sso.php \
|
|
|
|
|
|
|
|
&& ln -sf /dev/stderr /var/www/html/logs/errors.log \
|
|
|
|
|
|
|
|
&& chown -R root:root . \
|
|
|
|
|
|
|
|
&& chown www-data:www-data logs temp \
|
|
|
|
|
|
|
|
&& chmod -R a+rX . \
|
|
|
|
&& rm -rf /var/lib/apt/lists \
|
|
|
|
&& rm -rf /var/lib/apt/lists \
|
|
|
|
&& a2enmod rewrite deflate expires headers
|
|
|
|
&& a2enmod rewrite deflate expires headers
|
|
|
|
|
|
|
|
|
|
|
@ -51,4 +56,4 @@ VOLUME ["/data"]
|
|
|
|
|
|
|
|
|
|
|
|
CMD /start.py
|
|
|
|
CMD /start.py
|
|
|
|
|
|
|
|
|
|
|
|
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1
|
|
|
|
HEALTHCHECK CMD curl -f -L -H 'User-Agent: health' http://localhost/ || exit 1
|
|
|
|