Closed mhmdksh closed 1 year ago
UPDATE: I also found that there is a mismatch between Caddy release on Github (2.7.3) vs Dockerhub (2.7.2)
Caddy on Dockerhub being a week out of date and not having Caddy 2.7.3 yet is a problem for using Caddy in production and Dockerhub should probably be updated automatically on a new Caddy release on Github, especially if dependencies are updated in (otherwise unchanged) modules like this one. Additionally, modules like this one should probably be able to support multiple versions of Caddy, like 2.6 and 2.7, at the very least through version tagging on Github as currently this module is not version tagged.
For a workaround in the meantime, specify the previous commit (a9d3ae2690a1d232bc9f8fc8b15bd4e0a6960eec
) of this caddy-dns/cloudflare module in the xcaddy build --with
command in your Dockerfile, like so:
FROM caddy:2.6-builder AS builder
RUN xcaddy build \
--with github.com/caddy-dns/cloudflare@a9d3ae2690a1d232bc9f8fc8b15bd4e0a6960eec
FROM caddy:2.6
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
Duplicate of https://github.com/caddyserver/caddy-docker/issues/307
And https://github.com/caddyserver/caddy-docker/issues/317
In the future, please don't create multiple issues for the same thing, especially when it's already a duplicate that 5x over all week.
I'm getting this error:
While building with the lates Caddy Image from Dockerhub (Which is 2.7.2) at the time of opening this issue.
My Dockerfile:
This is a serious bug, there is a mismatch between the package requirement, and the Dockerhub version release