This commit is contained in:
mrzta
2026-02-12 17:26:28 +00:00
parent 75f405501b
commit f39ec74206
65 changed files with 6002 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"]