# pangolin-edge:官方 nginx + certbot(DNS-01/Cloudflare),让分发层容器自己续签自己用的证书。
FROM nginx:1.27-alpine

# certbot + Cloudflare DNS 插件(EC2 实测:certbot 3.0.1)
RUN apk add --no-cache certbot certbot-dns-cloudflare

COPY pangolin-entrypoint.sh /usr/local/bin/pangolin-entrypoint.sh
RUN chmod +x /usr/local/bin/pangolin-entrypoint.sh

ENTRYPOINT ["/usr/local/bin/pangolin-entrypoint.sh"]
