u
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
FROM docker.io/library/caddy:2-builder AS builder
|
||||
|
||||
RUN xcaddy build \
|
||||
--with github.com/caddyserver/nginx-adapter \
|
||||
--with github.com/caddy-dns/cloudflare \
|
||||
--with github.com/caddyserver/replace-response \
|
||||
--with github.com/mholt/caddy-webdav \
|
||||
--with github.com/mholt/caddy-ratelimit \
|
||||
--with github.com/WeidiDeng/caddy-cloudflare-ip \
|
||||
--with github.com/porech/caddy-maxmind-geolocation \
|
||||
--with github.com/mholt/caddy-l4 \
|
||||
--with github.com/aksdb/caddy-cgi/v2
|
||||
|
||||
FROM docker.io/library/caddy:latest
|
||||
|
||||
RUN apk update && apk add --no-cache git git-daemon cgit python3 py3-pygments py3-markdown py3-docutils groff curl dcron
|
||||
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
COPY update_geodb.sh /usr/local/bin/update_geodb.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh \
|
||||
&& chmod +x /usr/local/bin/update_geodb.sh \
|
||||
&& echo "0 0 */3 * * /usr/local/bin/update_geodb.sh > /proc/1/fd/1 2>/proc/1/fd/2" | crontab -
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user