external-renders: add agrs --global for pipx (#33)

Add `--global` to fix jupyter to /usr/local/bin

Reviewed-on: https://gitea.com/gitea/docs/pulls/33
Reviewed-by: yp05327 <[email protected]>
Reviewed-by: Lunny Xiao <[email protected]>
Co-authored-by: ifurther <[email protected]>
Co-committed-by: ifurther <[email protected]>
This commit is contained in:
ifurther
2024-07-28 03:46:04 +00:00
committed by Lunny Xiao
parent a49bcbf20d
commit fa80574eb7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ COPY custom/app.ini /data/gitea/conf/app.ini
RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng libffi-dev pandoc python3-dev py3-pyzmq pipx
# install any other package you need for your external renderers
RUN pipx install jupyter docutils --include-deps
RUN pipx install jupyter docutils --include-deps --global
# add above any other python package you may need to install
```
@@ -40,7 +40,7 @@ COPY custom/app.ini /data/gitea/conf/app.ini
RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng libffi-dev pandoc python3-dev py3-pyzmq pipx
# 安装其他您需要的外部渲染器的软件包
RUN pipx install jupyter docutils --include-deps
RUN pipx install jupyter docutils --include-deps --global
# 在上面添加您需要安装的任何其他 Python 软件包
```