cannibal/entrypoint.sh
2026-04-03 20:51:34 +02:00

10 lines
285 B
Bash

#!/bin/sh
set -e
echo "Docker pruner starting as $(whoami). Schedule: ${PRUNE_SCHEDULE}"
# Write crontab from env var at runtime
CRONTAB_FILE=/tmp/crontab
echo "${PRUNE_SCHEDULE} docker system prune -af >> /tmp/prune.log 2>&1" > "${CRONTAB_FILE}"
exec supercronic "${CRONTAB_FILE}"