mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-10-06 21:46:03 +08:00
Merge pull request #63 from nextcloud/enh/26/run-image-and-volume-prune
run image prune and volume prune regularly
This commit is contained in:
commit
5723bf7ea8
2 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,9 @@ RUN curl "https://caddyserver.com/api/download?os=linux&arch=amd64" -o "/usr/bin
|
||||||
&& chmod +x /usr/bin/caddy \
|
&& chmod +x /usr/bin/caddy \
|
||||||
&& /usr/bin/caddy version
|
&& /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; \
|
RUN cd /var/www/docker-aio; \
|
||||||
git clone https://github.com/nextcloud/all-in-one.git .; \
|
git clone https://github.com/nextcloud/all-in-one.git .; \
|
||||||
chmod 770 -R ./; \
|
chmod 770 -R ./; \
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eu
|
set -eux
|
||||||
|
|
||||||
while true; do
|
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
|
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
|
sleep 1d
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue