[fix] docker: alpine - install apk py3-pydantic-core

Alpine Linux uses musl libc (instead of glibc). However, there is no pre-build
of the pydantic-core python package for musl lib on armv7.  Alternatively this
patch installs py3-pydantic-core from Alpine packages [1]

[1] https://pkgs.alpinelinux.org/package/edge/community/armv7/py3-pydantic-core

- closes: https://github.com/searxng/searxng/issues/3887

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2024-10-05 14:11:57 +02:00 committed by Bnyro
parent f00fa76eda
commit 5332d3a0b8
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ RUN apk add --no-cache -t build-dependencies \
uwsgi \ uwsgi \
uwsgi-python3 \ uwsgi-python3 \
brotli \ brotli \
py3-pydantic-core \
&& pip3 install --break-system-packages --no-cache -r requirements.txt \ && pip3 install --break-system-packages --no-cache -r requirements.txt \
&& apk del build-dependencies \ && apk del build-dependencies \
&& rm -rf /root/.cache && rm -rf /root/.cache