FROM nextcloud:20.0.9 MAINTAINER Marco Marinello EXPOSE 80 443 RUN mkdir -p /var/www/nc_data RUN mkdir -p /var/www/images RUN chown www-data. /var/www/nc_data RUN chown www-data. /var/www/images ENV DEBIAN_FRONTEND noninteractive RUN apt update RUN apt full-upgrade -qy RUN apt install -qy ca-certificates certbot python3-certbot-apache cron smbclient libsmbclient-dev wget libmagickwand-dev vim RUN pecl install smbclient RUN docker-php-ext-enable smbclient COPY logo.png /var/www/images COPY logo.svg /var/www/images COPY configure-fuss.sh / COPY crontab /etc COPY 000-default.conf /etc/apache2/sites-available RUN a2enmod rewrite ssl ENTRYPOINT ["/configure-fuss.sh"] CMD ["apache2-foreground"]