inital release of dockerized curl command to update duckdns entry

This commit is contained in:
bunix42 2018-03-15 20:05:00 +00:00 提交者 Hanjo Meinhardt
父節點 00269a5e63
當前提交 1fca49d406
共有 2 個檔案被更改,包括 12 行新增0 行删除

9
Dockerfile Normal file
查看文件

@ -0,0 +1,9 @@
FROM alpine
RUN apk add -U --no-cache curl
COPY renew-dns.sh /etc/periodic/15min/renew-dns.sh
ENV VERBOSE false
CMD /etc/periodic/15min/renew-dns.sh && crond -f -d 8

3
renew-dns.sh Executable file
查看文件

@ -0,0 +1,3 @@
#!/bin/sh
curl -s "https://www.duckdns.org/update?domains=$DOMAINS&token=$TOKEN&VERBOSE=$VERBOSE"