Skip to content

Commit 8fc2ec1

Browse files
authored
Update pip related commands for docker (#31106)
Thanks to graelo and silverwind for figuring out the problem. Fix #31101
1 parent 20c4025 commit 8fc2ec1

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

docs/content/administration/external-renderers.en-us.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ FROM gitea/gitea:@version@
3838
COPY custom/app.ini /data/gitea/conf/app.ini
3939
[...]
4040
41-
RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng libffi-dev py-pip python3-dev py3-pip py3-pyzmq
41+
RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng libffi-dev pandoc python3-dev py3-pyzmq pipx
4242
# install any other package you need for your external renderers
4343
44-
RUN pip3 install --upgrade pip
45-
RUN pip3 install -U setuptools
46-
RUN pip3 install jupyter docutils
44+
RUN pipx install jupyter docutils --include-deps
4745
# add above any other python package you may need to install
4846
```
4947

docs/content/administration/external-renderers.zh-cn.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ FROM gitea/gitea:@version@
3737
COPY custom/app.ini /data/gitea/conf/app.ini
3838
[...]
3939
40-
RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng libffi-dev py-pip python3-dev py3-pip py3-pyzmq
40+
RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng libffi-dev pandoc python3-dev py3-pyzmq pipx
4141
# 安装其他您需要的外部渲染器的软件包
4242
43-
RUN pip3 install --upgrade pip
44-
RUN pip3 install -U setuptools
45-
RUN pip3 install jupyter docutils
43+
RUN pipx install jupyter docutils --include-deps
4644
# 在上面添加您需要安装的任何其他 Python 软件包
4745
```
4846

0 commit comments

Comments
 (0)