FROM nextcloud:fpm ARG NV ARG VCS_REF LABEL org.label-schema.vcs-url="https://gitbucket.pgollor.de/docker/nextcloud" \ org.label-schema.vcs-ref=$VCS_REF \ nv=$NV RUN apt-get update && \ apt-get install -y --no-install-recommends \ libgmp3-dev \ smbclient libsmbclient-dev \ libbz2-dev \ libmagickcore-6.q16-6-extra \ ocrmypdf \ imagemagick ghostscript RUN apt-get clean && rm -rf /var/lib/apt/lists/* RUN pecl install \ smbclient RUN docker-php-ext-install bz2 RUN docker-php-ext-install gmp RUN docker-php-ext-install bz2 RUN docker-php-ext-install bcmath RUN docker-php-ext-enable smbclient RUN sed -i '/domain="coder".*pattern="PDF"/c\<policy domain="coder" rights="read\|write" pattern="PDF" \/>' /etc/ImageMagick-6/policy.xml COPY redis.config.php /usr/src/nextcloud/config/redis.config.php