2023-08-09 14:15:02 +02:00
|
|
|
FROM roundcube/roundcubemail:1.6.2-apache
|
2021-05-09 22:07:17 +02:00
|
|
|
|
2021-10-18 23:29:05 +02:00
|
|
|
RUN a2enmod remoteip; \
|
|
|
|
echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf-available/remoteip.conf; \
|
|
|
|
a2enconf remoteip; \
|
|
|
|
sed -i -r 's/^ServerTokens .*/ServerTokens Prod/g' /etc/apache2/conf-available/security.conf; \
|
|
|
|
sed -i -r 's/^ServerSignature .*/ServerSignature Off/g' /etc/apache2/conf-available/security.conf; \
|
|
|
|
sed -i -E 's/^LogFormat "%h(.*)/LogFormat "%a\1/g' /etc/apache2/apache2.conf; \
|
|
|
|
echo "expose_php = Off" > /usr/local/etc/php/conf.d/php_version.ini;
|
|
|
|
|
2021-05-09 22:07:17 +02:00
|
|
|
RUN set -ex; \
|
|
|
|
apt-get update; \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
git \
|
|
|
|
; \
|
|
|
|
\
|
|
|
|
composer \
|
|
|
|
--working-dir=/usr/src/roundcubemail/ \
|
2022-12-14 16:30:11 +01:00
|
|
|
--prefer-dist \
|
|
|
|
--prefer-stable \
|
|
|
|
--update-no-dev \
|
|
|
|
--no-interaction \
|
|
|
|
--optimize-autoloader \
|
|
|
|
--apcu-autoloader \
|
2021-05-09 22:07:17 +02:00
|
|
|
require \
|
|
|
|
roundcube/carddav \
|
2023-08-09 14:15:02 +02:00
|
|
|
;
|
2021-05-09 22:07:17 +02:00
|
|
|
|
|
|
|
RUN mkdir -p /etc/enigma/gnupg \
|
|
|
|
&& chown www-data:www-data /etc/enigma/gnupg \
|
|
|
|
&& cp /usr/src/roundcubemail/plugins/enigma/config.inc.php.dist /usr/src/roundcubemail/plugins/enigma/config.inc.php \
|
|
|
|
&& echo "\$config['enigma_pgp_homedir'] = '/etc/enigma/gnupg';" >> /usr/src/roundcubemail/plugins/enigma/config.inc.php
|