Explorar el Código

Upgrade to 13.0.2

* adding entrypoint.sh to enforce cron service startup
* removing crontab line for nextcloud since it is already there
* adding build.sh for convenience
bodicsek hace 7 años
padre
commit
4258c25b53
Se han modificado 3 ficheros con 16 adiciones y 4 borrados
  1. 4 4
      Dockerfile
  2. 4 0
      build.sh
  3. 8 0
      entrypoint.sh

+ 4 - 4
Dockerfile

@@ -1,10 +1,10 @@
-FROM arm32v7/nextcloud:13.0.0
+FROM arm32v7/nextcloud:13.0.2
 
 LABEL Description="Official nextcloud arm32v7 image for rpi with cron configured."
 
-RUN apt-get update && apt-get install -y --no-install-recommends cron && \
-  (crontab -u www-data -l 2>/dev/null; echo "*/15  *  *  *  * /usr/local/bin/php -f /var/www/html/cron.php") | crontab -u www-data - && \
-  service cron start
+COPY ./entrypoint.sh /
+
+RUN apt-get update && apt-get install -y --no-install-recommends cron
 
 ENTRYPOINT ["/entrypoint.sh"]
 CMD ["apache2-foreground"]

+ 4 - 0
build.sh

@@ -0,0 +1,4 @@
+#!/bin/bash
+
+docker build --force-rm -t bodicsek/nextcloud-armhf:13.0.2 .
+

+ 8 - 0
entrypoint.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+service cron start
+
+exec "$@"
+