diff --git a/Dockerfile b/Dockerfile index 5b44c09..4f18e7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,20 @@ -FROM owncloud:10.0.10 +#FROM owncloud:10.0.4 +FROM nextcloud:9 +#FROM nextcloud:12.0.4 +#FROM nextcloud:13.0.12 +#FROM nextcloud:16 +#FROM nextcloud:17 -RUN apt-get update && \ - apt-get install -q -y cron vim git && \ - apt-get clean +# RUN apt-get update && \ +# apt-get install -q -y cron && \ +# apt-get clean -RUN echo "*/15 * * * * root su -l www-data -s /bin/bash -c 'php -f /var/www/html/cron.php' > /dev/null 2>&1" >> /etc/crontab +# RUN echo "*/15 * * * * root su -l www-data -s /bin/bash -c 'php -f /var/www/html/cron.php' > /dev/null 2>&1" >> /etc/crontab -COPY docker-entry.sh /docker-entry.sh -CMD /docker-entry.sh +# CMD cron && apache2-foreground + +# Mandatory for bookmark extension +# but missing from deb packages +# RUN apt-get update \ +# && apt-get install -y php7.3-gmp diff --git a/docker-entry.sh b/docker-entry.sh deleted file mode 100755 index e93b44c..0000000 --- a/docker-entry.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Add htaccess configuration -cat >> /var/www/html/.htaccess < -RewriteRule ^sites/(.*) http://127.0.0.1/index.php/apps/cms_pico/pico/$1 [P] - -MARK - -# Enable apache modules -a2enmod proxy proxy_http rewrite - -# Run service -cron -exec apache2-foreground -