Added Caddy docker-proxy + OVH variant image

This commit is contained in:
syrell 2024-01-21 17:28:00 +01:00
parent 89b3cbfa1c
commit 73dc75c9ca
Signed by: syrell
GPG Key ID: BC9570E849334AF9
2 changed files with 24 additions and 1 deletions

View File

@ -28,7 +28,19 @@ docker build --build-arg VERSION=2.7.6 -f ./caddy-duckdns.Dockerfile -t caddy-du
Existing pre-built images : Existing pre-built images :
* git.syyrell.com/syrell/caddy-duckdns:2.7.6 * 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 === gitea-external-renderers.Dockerfile

View File

@ -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"]