commit 23ad2a788194d254c3d0d04a20486ebbcce82dde Author: syrell Date: Sat Dec 16 16:46:43 2023 +0100 Added base documentation and caddy-duckdns Dockerfile diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..ef5ff78 --- /dev/null +++ b/README.adoc @@ -0,0 +1,30 @@ += Docker + +This repository contains custom Dockerfiles whose images will be stored on this Gitea container registry. + + +== How to use + +To use the container registry you must login using your credentials. If you have enabled two-factors authentication, you will need to create an application token with repository read access. More informations on https://docs.gitea.com/usage/packages/container[Gitea documentation]. + +[source,shell] +---- +docker login git.syyrell.com +docker pull git.syyrell.com/{owner}/{image}:{tag} +docker push git.syyrell.com/{owner}/{image}:{tag} +---- + +== Dockerfiles available + +=== caddy-duckdns.Dockerfile + +Caddy base image with https://github.com/caddy-dns/duckdns[duckdns module] added. There is a `VERSION` variable required to chose which Caddy version to use. + +[source,shell] +---- +docker build --build-arg VERSION=2.7.6 -f ./caddy-duckdns.Dockerfile -t caddy-duckdns:2.7.6 . +---- + +Existing pre-built images : + +* git.syyrell.com/syrell/caddy-duckdns:2.7.6 \ No newline at end of file diff --git a/caddy-duckdns.Dockerfile b/caddy-duckdns.Dockerfile new file mode 100644 index 0000000..c7122ca --- /dev/null +++ b/caddy-duckdns.Dockerfile @@ -0,0 +1,8 @@ +ARG VERSION=latest +FROM caddy:${VERSION}-builder AS builder + +RUN xcaddy build \ + --with github.com/caddy-dns/duckdns + +FROM caddy:${VERSION} +COPY --from=builder /usr/bin/caddy /usr/bin/caddy \ No newline at end of file