diff --git a/Dockerfile b/Dockerfile index 6e06df6..d3aed4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ -#FROM owncloud:10.0.4 -FROM nextcloud:12.0.4 -#FROM nextcloud:13 +FROM owncloud:10.0.10 RUN apt-get update && \ apt-get install -q -y cron && \ @@ -8,5 +6,6 @@ RUN apt-get update && \ 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 -CMD cron && apache2-foreground +COPY docker-entry.sh /docker-entry.sh +CMD /docker-entry.sh diff --git a/docker-entry.sh b/docker-entry.sh new file mode 100644 index 0000000..331518c --- /dev/null +++ b/docker-entry.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# Add htaccess configuration +cat >> /var/www/html/.htaccess < +ProxyPass /sites/ http://localhost/index.php/apps/cms_pico/pico/ +ProxyPassReverse /sites/ http://localhost/index.php/apps/cms_pico/pico/ + +MARK + +# Enable apache modules +a2enmod proxy rewrite + +# Run service +cron +exec apache2-foreground +