= Docker

This repository contains custom Dockerfiles whose images will be stored on this Gitea container registry. Releases trace new image tags being added to the 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 (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]
----
docker build --build-arg CADDY_VERSION=2.8.4 -f ./caddy-duckdns.Dockerfile -t caddy-duckdns:2.8.4 .
----

=== 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.8.4 -f ./caddy-docker-ovh.Dockerfile -t caddy-docker-ovh:2.8.4 .
----

=== gitea-external-renderers.Dockerfile

Gitea base image (rootless) with https://docs.gitea.com/administration/external-renderers[external renderers] added. There is a `VERSION` (default: latest) variable to chose which Gitea version to use. Libraries for Jupyter are not installed to keep the image size reasonable, other providers should work just fine. Don't forget to update your `app.ini` file to enable desired providers.

[source,shell]
----
docker build --build-arg GITEA_VERSION=1.22.0 -f ./gitea-external-renderers.Dockerfile -t gitea-external-renderers:1.22.0 .
----