Skip to content

Commit 08a905f

Browse files
authored
Fix external renderers example (#12841)
* libffi-dev is required for building jupyter * matplotlib can not be installed using wheels on the used version of alpine linux, which means it must be compiled and a large number of other packages have to be installed as well. This is very inefficient: see eg. https://pythonspeed.com/articles/alpine-docker-python/ Apart from that, matplotlib is actually not required for rendering notebook files in gitea and it will pull in other dependencies which take some time to build (ie numpy).
1 parent ed2bdf4 commit 08a905f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/doc/advanced/external-renderers.en-us.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ FROM gitea/gitea:{{< version >}}
3636
COPY custom/app.ini /data/gitea/conf/app.ini
3737
[...]
3838
39-
RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng python-dev py-pip python3-dev py3-pip py3-pyzmq
39+
RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng libffi-dev python-dev py-pip python3-dev py3-pip py3-pyzmq
4040
# install any other package you need for your external renderers
4141
4242
RUN pip3 install --upgrade pip
4343
RUN pip3 install -U setuptools
44-
RUN pip3 install jupyter matplotlib docutils
44+
RUN pip3 install jupyter docutils
4545
# add above any other python package you may need to install
4646
```
4747

0 commit comments

Comments
 (0)