Switch to nextcloud

This commit is contained in:
Glenn Y. Rolland 2019-11-20 17:33:31 +01:00
parent dbb4409838
commit 8c92eff659
2 changed files with 16 additions and 23 deletions

View file

@ -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

View file

@ -1,16 +0,0 @@
#!/bin/sh
# Add htaccess configuration
cat >> /var/www/html/.htaccess <<MARK
<IfModule mod_proxy.c>
RewriteRule ^sites/(.*) http://127.0.0.1/index.php/apps/cms_pico/pico/$1 [P]
</IfModule>
MARK
# Enable apache modules
a2enmod proxy proxy_http rewrite
# Run service
cron
exec apache2-foreground