This commit is contained in:
2026-03-05 21:35:59 +00:00
parent f6608eee87
commit 3824bddbb5
73 changed files with 6971 additions and 0 deletions

18
cloudflare/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM alpine:latest
# Install tools
RUN apk add --no-cache curl bash jq
# Copy the script
COPY cloudflare-ddns.sh /usr/local/bin/cloudflare-ddns.sh
# --- FIX: This line removes Windows line endings if they exist ---
RUN sed -i 's/\r$//' /usr/local/bin/cloudflare-ddns.sh
# Make it executable
RUN chmod +x /usr/local/bin/cloudflare-ddns.sh
# Setup cron (Runs every 5 minutes and logs to Docker)
RUN echo "*/5 * * * * /usr/local/bin/cloudflare-ddns.sh > /proc/1/fd/1 2>&1" > /etc/crontabs/root
CMD ["crond", "-f", "-l", "2"]