diff --git a/Containers/mastercontainer/Dockerfile b/Containers/mastercontainer/Dockerfile index a3b455ab..2cd39b10 100644 --- a/Containers/mastercontainer/Dockerfile +++ b/Containers/mastercontainer/Dockerfile @@ -26,6 +26,9 @@ RUN curl "https://caddyserver.com/api/download?os=linux&arch=amd64" -o "/usr/bin && chmod +x /usr/bin/caddy \ && /usr/bin/caddy version +COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/ +RUN chmod +x /usr/local/bin/docker + RUN cd /var/www/docker-aio; \ git clone https://github.com/nextcloud/all-in-one.git .; \ chmod 770 -R ./; \ diff --git a/Containers/mastercontainer/cron.sh b/Containers/mastercontainer/cron.sh index 31e1d619..cf1b8d21 100644 --- a/Containers/mastercontainer/cron.sh +++ b/Containers/mastercontainer/cron.sh @@ -1,7 +1,10 @@ #!/bin/sh -set -eu +set -eux while true; do + # Check for updates and send notification if yes sudo -u www-data php /var/www/docker-aio/php/src/Cron/cron.php + # Remove dangling images + sudo -u www-data docker image prune -f sleep 1d done