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 <yp05327@noreply.gitea.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: ifurther <55025025+ifurther@users.noreply.github.com>
Co-committed-by: ifurther <55025025+ifurther@users.noreply.github.com>
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

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

View File

@@ -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 软件包
```