diff --git a/README.adoc b/README.adoc index ee729eb..3cc4f9d 100644 --- a/README.adoc +++ b/README.adoc @@ -28,7 +28,19 @@ docker build --build-arg VERSION=2.7.6 -f ./caddy-duckdns.Dockerfile -t caddy-du Existing pre-built images : * git.syyrell.com/syrell/caddy-duckdns:2.7.6 -* git.syyrell.com/syrell/caddy-arm-duckdns:2.7.6 + +=== caddy-docker-ovh.Dockerfile + +Caddy base image with https://github.com/caddy-dns/ovh[OVH module] and https://github.com/lucaslorentz/caddy-docker-proxy[docker-proxy module] added. There is a `CADDY_VERSION` variable (default: latest) to chose which Caddy version to use. + +[source,shell] +---- +docker build --build-arg CADDY_VERSION=2.7.6 -f ./caddy-docker-ovh.Dockerfile -t caddy-docker-ovh:2.7.6 . +---- + +Existing pre-built images : + +* git.syyrell.com/syrell/caddy-docker-ovh:2.7.6 === gitea-external-renderers.Dockerfile diff --git a/caddy-docker-ovh.Dockerfile b/caddy-docker-ovh.Dockerfile new file mode 100644 index 0000000..a024ee3 --- /dev/null +++ b/caddy-docker-ovh.Dockerfile @@ -0,0 +1,11 @@ +ARG CADDY_VERSION=latest +FROM caddy:${CADDY_VERSION}-builder AS builder + +RUN xcaddy build \ + --with github.com/lucaslorentz/caddy-docker-proxy/v2 \ + --with github.com/caddy-dns/ovh + +FROM caddy:${CADDY_VERSION} +COPY --from=builder /usr/bin/caddy /usr/bin/caddy + +CMD ["caddy", "docker-proxy"] \ No newline at end of file