From afb5295305975d68f41a6e988e6aa9f9b96bc5bb Mon Sep 17 00:00:00 2001 From: syrell Date: Sat, 16 Dec 2023 20:08:43 +0100 Subject: [PATCH] Added custom rootless Gitea Dockerfile --- README.adoc | 17 +++++++++++++++-- gitea-external-renderers.Dockerfile | 9 +++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 gitea-external-renderers.Dockerfile diff --git a/README.adoc b/README.adoc index ef5ff78..4f4c264 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 required 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. [source,shell] ---- @@ -27,4 +27,17 @@ 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 \ No newline at end of file +* git.syyrell.com/syrell/caddy-duckdns:2.7.6 + +=== 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 VERSION=1.21.1 -f ./gitea-external-renderers.Dockerfile -t gitea-external-renderers:1.21.1 . +---- + +Existing pre-built images : + +* git.syyrell.com/syrell/gitea-external-renderers:1.21.1 \ No newline at end of file diff --git a/gitea-external-renderers.Dockerfile b/gitea-external-renderers.Dockerfile new file mode 100644 index 0000000..6775f6e --- /dev/null +++ b/gitea-external-renderers.Dockerfile @@ -0,0 +1,9 @@ +ARG VERSION=latest +FROM gitea/gitea:${VERSION}-rootless + +USER root +RUN apk --no-cache add \ + asciidoctor \ + pandoc + +USER 1000:1000 \ No newline at end of file