15 lines
609 B
Text
15 lines
609 B
Text
|
|
# Custom Caddy build that bundles the Vultr DNS provider plugin.
|
||
|
|
# Stock caddy:2 doesn't include DNS-provider modules — they're plugins.
|
||
|
|
# xcaddy compiles them in at build time.
|
||
|
|
FROM caddy:2.10.0-builder AS builder
|
||
|
|
# The Caddy builder image bakes in Go 1.23, but caddy-dns/vultr now
|
||
|
|
# requires Go >= 1.24. GOTOOLCHAIN=auto lets `go get` fetch a newer
|
||
|
|
# toolchain on demand so we don't have to bump base images every time
|
||
|
|
# a plugin's minimum Go version moves.
|
||
|
|
ENV GOTOOLCHAIN=auto
|
||
|
|
RUN xcaddy build \
|
||
|
|
--with github.com/caddy-dns/vultr
|
||
|
|
|
||
|
|
FROM caddy:2.10.0
|
||
|
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|