From 8a4e8b276b383188913592e9e882da364f40db47 Mon Sep 17 00:00:00 2001 From: syrell Date: Mon, 18 Dec 2023 00:43:50 +0100 Subject: [PATCH] Added Caddy ARM-based variant image --- README.adoc | 3 ++- caddy-arm-duckdns.Dockerfile | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 caddy-arm-duckdns.Dockerfile diff --git a/README.adoc b/README.adoc index 4f4c264..d74236b 100644 --- a/README.adoc +++ b/README.adoc @@ -18,7 +18,7 @@ docker push git.syyrell.com/{owner}/{image}:{tag} === caddy-duckdns.Dockerfile -Caddy base image with https://github.com/caddy-dns/duckdns[duckdns module] added. There is a `VERSION` variable (default: latest) to chose which Caddy version to use. +Caddy base image with https://github.com/caddy-dns/duckdns[duckdns module] added. There is a `VERSION` variable (default: latest) to chose which Caddy version to use. There is also an ARM variant of this image link:./caddy-arm-duckdns.Dockerfile[here]. [source,shell] ---- @@ -28,6 +28,7 @@ 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 === gitea-external-renderers.Dockerfile diff --git a/caddy-arm-duckdns.Dockerfile b/caddy-arm-duckdns.Dockerfile new file mode 100644 index 0000000..88cc7d7 --- /dev/null +++ b/caddy-arm-duckdns.Dockerfile @@ -0,0 +1,8 @@ +ARG VERSION=latest +FROM arm64v8/caddy:${VERSION}-builder AS builder + +RUN xcaddy build \ + --with github.com/caddy-dns/duckdns + +FROM arm64v8/caddy:${VERSION} +COPY --from=builder /usr/bin/caddy /usr/bin/caddy \ No newline at end of file