1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-12 05:04:24 +00:00

Update pip related commands for docker (#31106) (#31111)

Backport #31106 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Giteabot 2024-05-27 21:54:19 +08:00 committed by GitHub
parent 803b0c9ab4
commit 7f706bd171
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 8 deletions

View File

@ -38,12 +38,10 @@ FROM gitea/gitea:@version@
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini
[...] [...]
RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng libffi-dev py-pip python3-dev py3-pip py3-pyzmq 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 # install any other package you need for your external renderers
RUN pip3 install --upgrade pip RUN pipx install jupyter docutils --include-deps
RUN pip3 install -U setuptools
RUN pip3 install jupyter docutils
# add above any other python package you may need to install # add above any other python package you may need to install
``` ```

View File

@ -37,12 +37,10 @@ FROM gitea/gitea:@version@
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini
[...] [...]
RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng libffi-dev py-pip python3-dev py3-pip py3-pyzmq RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng libffi-dev pandoc python3-dev py3-pyzmq pipx
# 安装其他您需要的外部渲染器的软件包 # 安装其他您需要的外部渲染器的软件包
RUN pip3 install --upgrade pip RUN pipx install jupyter docutils --include-deps
RUN pip3 install -U setuptools
RUN pip3 install jupyter docutils
# 在上面添加您需要安装的任何其他 Python 软件包 # 在上面添加您需要安装的任何其他 Python 软件包
``` ```