FROM instrumentisto/roundcube COPY docker-entrypoint.sh /docker-entrypoint.sh RUN apt-get update \ && apt-get upgrade -y \ && apt-get install -y --no-install-recommends --no-install-suggests \ git \ gnupg \ libxml2-dev \ && docker-php-ext-configure soap --with-libdir=lib/x86_64-linux-gnu \ && docker-php-ext-install soap \ && curl -fL -o /tmp/composer-setup.php https://getcomposer.org/installer \ && curl -fL -o /tmp/composer-setup.sig https://composer.github.io/installer.sig \ && php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== trim(file_get_contents('/tmp/composer-setup.sig'))) { echo 'Invalid installer' . PHP_EOL; exit(1); }" \ && php /tmp/composer-setup.php --install-dir=/tmp --filename=composer \ && chmod +x /docker-entrypoint.sh \ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false libxml2-dev \ && rm -rf /var/lib/apt/lists/* \ && mkdir /plugins_config VOLUME ["plugins_config"]