FROM nextcloud:stable-fpm RUN apt update && apt install -y --no-install-recommends sudo nfs-common libreoffice libreoffice-java-common default-jre imagemagick ghostscript smbclient iputils-ping ffmpeg procps supervisor RUN rm -rf /var/lib/apt/lists/* RUN mkdir -p /var/log/supervisord /var/run/supervisord COPY supervisord.conf / COPY policy.xml /etc/ImageMagick-6/policy.xml ENV NEXTCLOUD_UPDATE=1 CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]