summaryrefslogtreecommitdiff
path: root/caddy/Dockerfile
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-07-03 00:45:51 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-07-03 00:45:51 +0900
commite14f9edcb95875e2519461690915ab3e25740e96 (patch)
tree12ca3858cbb40c71893599e13b54df9b34afe2f5 /caddy/Dockerfile
parentc39ec05968656aaa893ed7e4b20b7d5f5ccbe5b5 (diff)
Restrict proxy to Japan IPs using ipdeny.com CIDR list
Downloads jp-aggregated.zone from ipdeny.com at container startup (no account required). Falls back to open access if download fails. Removed caddy-maxmind-geoip module (no longer needed). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'caddy/Dockerfile')
-rw-r--r--caddy/Dockerfile5
1 files changed, 2 insertions, 3 deletions
diff --git a/caddy/Dockerfile b/caddy/Dockerfile
index c7f4ac8..e6e20b6 100644
--- a/caddy/Dockerfile
+++ b/caddy/Dockerfile
@@ -1,9 +1,8 @@
FROM caddy:2-builder-alpine AS builder
-RUN xcaddy build \
- --with github.com/caddyserver/forwardproxy@caddy2 \
- --with github.com/porech/caddy-maxmind-geoip
+RUN xcaddy build --with github.com/caddyserver/forwardproxy@caddy2
FROM caddy:2-alpine
+RUN apk add --no-cache wget
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh