Add docker-entry
This commit is contained in:
parent
7ec2679072
commit
f7b412dfc7
2 changed files with 20 additions and 4 deletions
|
@ -1,6 +1,4 @@
|
||||||
#FROM owncloud:10.0.4
|
FROM owncloud:10.0.10
|
||||||
FROM nextcloud:12.0.4
|
|
||||||
#FROM nextcloud:13
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -q -y cron && \
|
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
|
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
|
||||||
|
|
||||||
|
|
17
docker-entry.sh
Normal file
17
docker-entry.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Add htaccess configuration
|
||||||
|
cat >> /var/www/html/.htaccess <<MARK
|
||||||
|
<IfModule mod_proxy.c>
|
||||||
|
ProxyPass /sites/ http://localhost/index.php/apps/cms_pico/pico/
|
||||||
|
ProxyPassReverse /sites/ http://localhost/index.php/apps/cms_pico/pico/
|
||||||
|
</IfModule>
|
||||||
|
MARK
|
||||||
|
|
||||||
|
# Enable apache modules
|
||||||
|
a2enmod proxy rewrite
|
||||||
|
|
||||||
|
# Run service
|
||||||
|
cron
|
||||||
|
exec apache2-foreground
|
||||||
|
|
Loading…
Reference in a new issue