# Custom Caddy Dockerfile with Bunny DNS and Dynamic DNS modules # Based on official Caddy Alpine image FROM caddy:2.7.6-alpine # Install xcaddy for custom builds RUN apk add --no-cache xcaddy # Build Caddy with required modules RUN xcaddy build \ --output /usr/bin/caddy \ --with github.com/caddy-dns/bunny \ --with github.com/mholt/caddy-dynamicdns # Verify modules are loaded RUN caddy list-modules | grep -E "dns.providers.bunny|dynamic_dns" && echo "Modules loaded successfully" || exit 1