Sync testing

This commit is contained in:
thopic 2021-12-12 15:21:32 +01:00
parent be93c84ce9
commit b6c6ba6fb9
Signed by: thopic
GPG Key ID: 292DBBF0B54AD4C5
2 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,12 @@
FROM roundcube/roundcubemail:1.4.11-apache FROM roundcube/roundcubemail:1.4.12-apache
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;
RUN set -ex; \ RUN set -ex; \
apt-get update; \ apt-get update; \
@ -9,6 +17,14 @@ RUN set -ex; \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer; \ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer; \
mv /usr/src/roundcubemail/composer.json-dist /usr/src/roundcubemail/composer.json; \ mv /usr/src/roundcubemail/composer.json-dist /usr/src/roundcubemail/composer.json; \
\ \
composer \
--working-dir=/usr/src/roundcubemail/ \
--prefer-dist --prefer-stable \
--no-update --no-interaction \
--optimize-autoloader --apcu-autoloader \
require \
roundcube/carddav \
; \
composer \ composer \
--working-dir=/usr/src/roundcubemail/ \ --working-dir=/usr/src/roundcubemail/ \
--prefer-dist --no-dev \ --prefer-dist --no-dev \

View File

@ -3,7 +3,7 @@ version: "3.8"
services: services:
app: app:
build: . build: .
image: rc_test:latest image: rc_test:1.12
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- db - db