Switched from pip to pipx for nbconvert installation.\n Bumped gitea version.

This commit is contained in:
dm1sh 2025-02-06 03:18:25 +03:00
parent 9340e2689d
commit 022fb65877
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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]