From 022fb65877d6c6d7e6a15afd8d436ec6b34fe133 Mon Sep 17 00:00:00 2001 From: dm1sh Date: Thu, 6 Feb 2025 03:18:25 +0300 Subject: [PATCH] Switched from pip to pipx for nbconvert installation.\n Bumped gitea version. --- Dockerfile | 7 +++---- custom/app.ini | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4783c08..6356d3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ -FROM gitea/gitea:1.20.5 +FROM gitea/gitea:1.23.1 -RUN apk --no-cache add py3-pip pandoc-cli +RUN apk --no-cache add pipx pandoc-cli -RUN pip3 install --upgrade pip -RUN pip3 install nbconvert +RUN pipx install --global nbconvert COPY custom/app.ini /data/gitea/conf/app.ini diff --git a/custom/app.ini b/custom/app.ini index df286c2..2a5f074 100644 --- a/custom/app.ini +++ b/custom/app.ini @@ -28,7 +28,7 @@ DISABLE_REGISTRATION = true [markup.jupyter] ENABLED = true FILE_EXTENSIONS = .ipynb -RENDER_COMMAND = "jupyter nbconvert --stdin --stdout --to html --template basic" +RENDER_COMMAND = "jupyter-nbconvert --stdin --stdout --to html --template basic" IS_INPUT_FILE = false [markup.sanitizer.jupyter.img]